{include file='include/autosize.inc.tpl'} {include file='include/datepicker.inc.tpl'} {include file='include/colorbox.inc.tpl'} {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.{$themeconf.colorscheme}.css"} {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"} {footer_script} (function(){ {* *} var categoriesCache = new CategoriesCache({ serverKey: '{$CACHE_KEYS.categories}', serverId: '{$CACHE_KEYS._hash}', rootUrl: '{$ROOT_URL}' }); categoriesCache.selectize(jQuery('[data-selectize=categories]')); {* *} 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}' }}); {* *} 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'}'; url_delete = '{$U_DELETE}'; str_orphan = '{'This photo is an orphan'|@translate|escape:javascript}'; related_categories_ids = {$related_categories_ids|@json_encode}; {literal} $('#action-delete-picture').on('click', function() { $.confirm({ title: str_are_you_sure, draggable: false, titleClass: "groupDeleteConfirm", theme: "modern", content: "", animation: "zoom", boxWidth: '30%', useBootstrap: false, type: 'red', animateFromElement: false, backgroundDismiss: true, typeAnimated: false, buttons: { confirm: { text: str_yes, btnClass: 'btn-red', action: function () { window.location.href = url_delete.replaceAll('amp;', ''); } }, cancel: { text: str_no } } }); }) {/literal} }()); const str_assoc_album_ab = '{'Associate to album'|translate|escape:javascript}'; {/footer_script} {combine_script id='picture_modify' load='footer' path='admin/themes/default/js/picture_modify.js'} {combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {* order 10 is required, see issue 1080 *}