Skip to content

Commit

Permalink
Fix: checkbox in dialog doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
RadhiFadlillah committed Oct 13, 2019
1 parent 243a88c commit 7d938f3
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
2 changes: 1 addition & 1 deletion internal/view/js/component/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {
var value = field.value;
if (field.type === 'number') value = parseInt(value, 10) || 0;
else if (field.type === 'float') value = parseFloat(value) || 0.0;
else if (field.type === 'check') value = value !== '';
else if (field.type === 'check' && typeof (value) !== 'boolean') value = value !== '';
data[field.name] = value;
})

Expand Down
124 changes: 62 additions & 62 deletions internal/webserver/assets-prod.go

Large diffs are not rendered by default.

0 comments on commit 7d938f3

Please sign in to comment.