{combine_script id='jquery.chosen' load='footer' path='themes/default/js/plugins/chosen.jquery.min.js'} {combine_css path="themes/default/js/plugins/chosen.css"} {footer_script}{literal} jQuery(document).ready(function() { jQuery(".chzn-select").chosen(); function checkStatusOptions() { if (jQuery("input[name=status]:checked").val() == "private") { jQuery("#privateOptions, #applytoSubAction").show(); } else { jQuery("#privateOptions, #applytoSubAction").hide(); } } checkStatusOptions(); jQuery("#selectStatus").change(function() { checkStatusOptions(); }); jQuery("#indirectPermissionsDetailsShow").click(function(){ jQuery("#indirectPermissionsDetailsShow").hide(); jQuery("#indirectPermissionsDetailsHide").show(); jQuery("#indirectPermissionsDetails").show(); return false; }); jQuery("#indirectPermissionsDetailsHide").click(function(){ jQuery("#indirectPermissionsDetailsShow").show(); jQuery("#indirectPermissionsDetailsHide").hide(); jQuery("#indirectPermissionsDetails").hide(); return false; }); }); {/literal}{/footer_script}