diff options
Diffstat (limited to 'themes/okadmin/public/js/app.js')
| -rw-r--r-- | themes/okadmin/public/js/app.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js index 578d99f..d65fcc6 100644 --- a/themes/okadmin/public/js/app.js +++ b/themes/okadmin/public/js/app.js @@ -232,12 +232,11 @@ var OKAdmin = function(){ // Modify flags checkboxes such that unchecked ones return "false" // instead of nothing - $('.property .flag').each(function(i, el) { - var input = el.querySelector('input') - var checked = !!input.checked + $('.property input[type=checkbox]').each(function(i, el) { + var checked = !!el.checked if (!checked) { - $(input).attr('value', 'false') - input.checked = true + el.value = 'false' + el.setAttribute('checked', true) } }) |
