{combine_script id='LocalStorageCache' load='footer' path='admin/themes/default/js/LocalStorageCache.js'} {combine_script id='jquery.selectize' load='footer' path='themes/default/js/plugins/selectize.min.js'} {combine_css id='jquery.selectize' path="themes/default/js/plugins/selectize.default.css"} {footer_script} (function(){ {* *} var groupsCache = new GroupsCache({ serverKey: '{$CACHE_KEYS.groups}', serverId: '{$CACHE_KEYS._hash}', rootUrl: '{$ROOT_URL}' }); groupsCache.selectize(jQuery('[data-selectize=groups]')); {* *} var usersCache = new UsersCache({ serverKey: '{$CACHE_KEYS.users}', serverId: '{$CACHE_KEYS._hash}', rootUrl: '{$ROOT_URL}' }); usersCache.selectize(jQuery('[data-selectize=users]')); {* *} 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(); }); {if isset($nb_users_granted_indirect) && $nb_users_granted_indirect>0} jQuery(".toggle-indirectPermissions").click(function(e){ jQuery(".toggle-indirectPermissions").toggle(); jQuery("#indirectPermissionsDetails").toggle(); e.preventDefault(); }); {/if} }()); {/footer_script}