fix int() view helper (restore streak)

This commit is contained in:
Tyler Renelle 2013-05-22 11:30:17 +01:00
parent 1596808c25
commit 258cf55abb
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ module.exports.viewHelpers = (view) ->
view.fn 'count', (arr) -> arr?.length or 0 view.fn 'count', (arr) -> arr?.length or 0
view.fn 'int', view.fn 'int',
get: (num) -> num get: (num) -> num
set: (num) -> parseInt(num) set: (num) -> [parseInt(num)]
#iCal #iCal
view.fn "encodeiCalLink", helpers.encodeiCalLink view.fn "encodeiCalLink", helpers.encodeiCalLink

View file

@ -288,7 +288,7 @@
{{#if equal(:task.type,'daily')}} {{#if equal(:task.type,'daily')}}
<legend class="option-title">Restore Streak</legend> <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> </fieldset>
{/} {/}