summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/build/custom-post-types/js/menu-checkboxes.min.js')
-rw-r--r--plugins/jetpack/_inc/build/custom-post-types/js/menu-checkboxes.min.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/build/custom-post-types/js/menu-checkboxes.min.js b/plugins/jetpack/_inc/build/custom-post-types/js/menu-checkboxes.min.js
new file mode 100644
index 00000000..1cf20df1
--- /dev/null
+++ b/plugins/jetpack/_inc/build/custom-post-types/js/menu-checkboxes.min.js
@@ -0,0 +1,3 @@
+/* Do not modify this file directly. It is compiled from other files. */
+/* jshint onevar: false, smarttabs: true, devel: true */
+!function(c){var n={inputs:null,popInputs:null,initialize:function(){n.popInputs=c("#nova_menuchecklist-pop").find(":checkbox"),n.inputs=c("#nova_menuchecklist").find(":checkbox").change(n.checkOne).change(n.syncPop),n.isChecked()||n.checkFirst(),n.syncPop()},syncPop:function(){n.popInputs.each(function(){var n=c(this);n.prop("checked",c("#in-nova_menu-"+n.val()).is(":checked"))})},isChecked:function(){return n.inputs.is(":checked")},checkFirst:function(){n.inputs.first().prop("checked",!0)},checkOne:function(){return c(this).is(":checked")?n.inputs.not(this).prop("checked",!1):c(this).closest("#nova_menuchecklist").find(":checked").length>0?c(this).prop("checked",!1):n.checkFirst()}};c(n.initialize)}(jQuery); \ No newline at end of file