/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
archub-core
/
extensions
/
redux-metaboxes
/
Upload File
HOME
jQuery(function(e){"use strict";e.reduxMetaBoxes=e.reduxMetaBoxes||{},e(document).ready(function(){e.reduxMetaBoxes.init()}),e.reduxMetaBoxes.init=function(){e.reduxMetaBoxes.notLoaded=!0,e.reduxMetaBoxes.checkBoxVisibility(),e("#page_template").change(function(){e.reduxMetaBoxes.checkBoxVisibility("page_template")}),e('input[name="post_format"]:radio').change(function(){e.reduxMetaBoxes.checkBoxVisibility("post_format")}),e.redux.initFields()},e("#publishing-action .button, #save-action .button").click(function(){window.onbeforeunload=null});var t;e.reduxMetaBoxes.checkBoxVisibility=function(i){0!==reduxMetaboxes.length&&e.each(reduxMetaboxes,function(o,n){e.each(n,function(n,a){if((n===i||!i)&&(t="post_format"===n?e("input:radio[name='post_format']:checked").val():e("#"+n).val())){var u=!1;e.each(a,function(e,i){i===t&&(u=!0)}),(u||e.reduxMetaBoxes.notLoaded)&&u?(e("#"+o).fadeIn("300"),e.redux.initFields()):e("#"+o).hide()}})})}});