{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} {* *} var categoriesCache = new CategoriesCache({ serverKey: '{$CACHE_KEYS.categories}', serverId: '{$CACHE_KEYS._hash}', rootUrl: '{$ROOT_URL}' }); categoriesCache.selectize(jQuery('[data-selectize=categories]'), { default: 0, filter: function(categories, options) { // remove itself and children var filtered = jQuery.grep(categories, function(cat) { return !(/\b{$CAT_ID}\b/.test(cat.uppercats)); }); filtered.push({ id: 0, fullname: '------------', global_rank: 0 }); return filtered; } }); {/footer_script}