mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
fix int() view helper (restore streak)
This commit is contained in:
parent
1596808c25
commit
258cf55abb
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ module.exports.viewHelpers = (view) ->
|
|||
view.fn 'count', (arr) -> arr?.length or 0
|
||||
view.fn 'int',
|
||||
get: (num) -> num
|
||||
set: (num) -> parseInt(num)
|
||||
set: (num) -> [parseInt(num)]
|
||||
|
||||
#iCal
|
||||
view.fn "encodeiCalLink", helpers.encodeiCalLink
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@
|
|||
|
||||
{{#if equal(:task.type,'daily')}}
|
||||
<legend class="option-title">Restore Streak</legend>
|
||||
<input class='option-content' type=number value={int(:task.streak)} />
|
||||
<input class='option-content' type=number value="{int(:task.streak)}" />
|
||||
{{/}}
|
||||
</fieldset>
|
||||
{/}
|
||||
|
|
|
|||
Loading…
Reference in a new issue