summaryrefslogtreecommitdiff
path: root/themes/okadmin/public/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-08-17 03:29:17 -0400
committerJules Laplace <jules@okfoc.us>2016-08-17 03:29:17 -0400
commitf849c7dc08064eaa1ee1265b2d06a9c527adf66f (patch)
treef34af5e864ef7d90e72b5be47b110beb78d86f1c /themes/okadmin/public/js
parentca79a477d68915e6f61db235dded96dcf223bacd (diff)
fix weird box ishv0.1.36
Diffstat (limited to 'themes/okadmin/public/js')
-rw-r--r--themes/okadmin/public/js/app.js9
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)
}
})