From f849c7dc08064eaa1ee1265b2d06a9c527adf66f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 17 Aug 2016 03:29:17 -0400 Subject: fix weird box ish --- themes/okadmin/public/js/app.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'themes/okadmin/public/js') 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) } }) -- cgit v1.2.3-70-g09d2