{include file='include/autosize.inc.tpl'} {include file='include/datepicker.inc.tpl'} {include file='include/colorbox.inc.tpl'} {combine_script id='jquery.sort' load='footer' path='themes/default/js/plugins/jquery.sort.js'} {combine_script id='jquery.confirm' load='footer' require='jquery' path='themes/default/js/plugins/jquery-confirm.min.js'} {combine_css path="themes/default/js/plugins/jquery-confirm.min.css"} {combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {assign var='all_selected_album' value=[]} {footer_script} {* *} var activePlugins = {$ACTIVE_PLUGINS|json_encode}; {if isset($CACHE_KEYS)} {* *} var tagsCache = new TagsCache({ serverKey: '{$CACHE_KEYS.tags}', serverId: '{$CACHE_KEYS._hash}', rootUrl: '{$ROOT_URL}' }); tagsCache.selectize(jQuery('[data-selectize=tags]'), { lang: { 'Add': '{'Create'|translate}' }}); {* *} window.categoriesCache = new CategoriesCache({ serverKey: '{$CACHE_KEYS.categories}', serverId: '{$CACHE_KEYS._hash}', rootUrl: '{$ROOT_URL}' }); var associated_categories = {$associated_categories|@json_encode}; categoriesCache.selectize(jQuery('[data-selectize=categories]'), { filter: function(categories, options) { if (this.name == 'dissociate') { var filtered = jQuery.grep(categories, function(cat) { return !!associated_categories[cat.id]; }); if (filtered.length > 0) { options.default = filtered[0].id; } return filtered; } else { return categories; } } }); {/if} {* *} jQuery(function(){ {* *} jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true, cancelButton: '{'Cancel'|translate}' }); }); {* *} jQuery("a.preview-box").colorbox( { photo: true }); str_are_you_sure = "{'Are you sure?'|translate|escape:javascript}"; str_yes = "{'Yes, delete'|translate|escape:javascript}"; str_no = "{'No, I have changed my mind'|translate|@escape:'javascript'}"; str_orphan = "{'This photo is an orphan'|@translate|escape:javascript}"; str_meta_warning = "{'Warning ! Unsaved changes will be lost'|translate|escape:javascript}"; str_meta_yes = "{'I want to continue'|translate|escape:javascript}"; const str_title_ab = "{'Associate to album'|@translate}"; let b_current_picture_id; {* Check Skeleton extension for more details about extensibility *} pluginValues = []; {/footer_script} {combine_script id='batchManagerUnit' load='footer' require='jquery.ui.effect-blind,jquery.sort' path='admin/themes/default/js/batchManagerUnit.js'}