mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 11:32:16 +00:00
do not trigger validation error on float number, fix #1463
This commit is contained in:
parent
2523643dd5
commit
98fa007f36
2 changed files with 4 additions and 4 deletions
|
|
@ -18,13 +18,13 @@ div(ng-controller='SettingsCtrl')
|
|||
form#restore-form.form-horizontal
|
||||
h3 Stats
|
||||
.option-group.option-medium
|
||||
input.option-content(type='number', data-for='stats.hp', ng-model='user.stats.hp')
|
||||
input.option-content(type='number', step="any", data-for='stats.hp', ng-model='user.stats.hp')
|
||||
span.input-suffix HP
|
||||
.option-group.option-medium
|
||||
input.option-content(type='number', data-for='stats.exp', ng-model='user.stats.exp')
|
||||
input.option-content(type='number', step="any", data-for='stats.exp', ng-model='user.stats.exp')
|
||||
span.input-suffix Exp
|
||||
.option-group.option-medium
|
||||
input.option-content(type='number', data-for='stats.gp', ng-model='user.stats.gp')
|
||||
input.option-content(type='number', step="any", data-for='stats.gp', ng-model='user.stats.gp')
|
||||
span.input-suffix GP
|
||||
.option-group.option-medium
|
||||
input.option-content(type='number', data-for='stats.lvl', ng-model='user.stats.lvl')
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ li(ng-repeat='task in user[list.type + "s"]', class='task {{taskClasses(task,use
|
|||
// if Reward, pricing
|
||||
fieldset.option-group.option-short(ng-if='task.type=="reward"')
|
||||
legend.option-title Price
|
||||
input.option-content(type='number', size='16', min='0', ng-model='task.value')
|
||||
input.option-content(type='number', size='16', min='0', step="any", ng-model='task.value')
|
||||
.money.input-suffix
|
||||
span.shop_gold
|
||||
// if Todos, the due date
|
||||
|
|
|
|||
Loading…
Reference in a new issue