diff options
author | rvelices <rv-github@modusoptimus.com> | 2010-12-04 20:32:44 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2010-12-04 20:32:44 +0000 |
commit | bbd63f0088fe3ee5ea491ac5da03d8b68b5b1a0b (patch) | |
tree | 3ecc564ada495c5d16055e0ab0b5ce2894f86265 /admin/themes/default/template/element_set_global.tpl | |
parent | 81f391a1e441d424d67c9662531c770004aa4d89 (diff) |
trunk admin theme goes with combine_script instead of old style known_script
git-svn-id: http://piwigo.org/svn/trunk@7995 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/element_set_global.tpl')
-rw-r--r-- | admin/themes/default/template/element_set_global.tpl | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/admin/themes/default/template/element_set_global.tpl b/admin/themes/default/template/element_set_global.tpl index 73ec42f88..24cea87ed 100644 --- a/admin/themes/default/template/element_set_global.tpl +++ b/admin/themes/default/template/element_set_global.tpl @@ -1,29 +1,26 @@ {include file='include/tag_selection.inc.tpl'} {include file='include/datepicker.inc.tpl'} -{literal} -<script type="text/javascript"> - pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); +{footer_script}{literal} + pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); </script> -{/literal} - -{known_script id="jquery.fcbkcomplete" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.fcbkcomplete.js"} -{literal} -<script type="text/javascript"> - $(document).ready(function() { - $("#tags").fcbkcomplete({ - json_url: "admin.php?fckb_tags=1", - cache: false, - filter_case: false, - filter_hide: true, - firstselected: true, - filter_selected: true, - maxitems: 100, - newel: true - }); - }); -</script> -{/literal} +{/literal}{/footer_script} + +{combine_script id='jquery.fcbkcomplete' load='async' require='jquery' path='themes/default/js/plugins/jquery.fcbkcomplete.js'} +{footer_script require='jquery.fcbkcomplete'}{literal} +jQuery(document).ready(function() { + jQuery("#tags").fcbkcomplete({ + json_url: "admin.php?fckb_tags=1", + cache: false, + filter_case: false, + filter_hide: true, + firstselected: true, + filter_selected: true, + maxitems: 100, + newel: true + }); +}); +{/literal}{/footer_script} <h2>{'Batch management'|@translate}</h2> |