summaryrefslogtreecommitdiff
path: root/themes/okadmin/public/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/okadmin/public/js/app.js')
-rw-r--r--themes/okadmin/public/js/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/themes/okadmin/public/js/app.js b/themes/okadmin/public/js/app.js
index d58cb2a..4be0afc 100644
--- a/themes/okadmin/public/js/app.js
+++ b/themes/okadmin/public/js/app.js
@@ -181,6 +181,17 @@ var OKAdmin = function(){
$(el).append(normalizedInput)
})
+ // 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
+ if (!checked) {
+ $(input).attr('value', 'false')
+ input.checked = true
+ }
+ })
+
$("ol").each(function(){
$("li", this).each(function(index){
$(this).find("input,textarea").each(function(){