aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/plugins_new.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2010-12-04 20:32:44 +0000
committerrvelices <rv-github@modusoptimus.com>2010-12-04 20:32:44 +0000
commitbbd63f0088fe3ee5ea491ac5da03d8b68b5b1a0b (patch)
tree3ecc564ada495c5d16055e0ab0b5ce2894f86265 /admin/themes/default/template/plugins_new.tpl
parent81f391a1e441d424d67c9662531c770004aa4d89 (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/plugins_new.tpl')
-rw-r--r--admin/themes/default/template/plugins_new.tpl37
1 files changed, 18 insertions, 19 deletions
diff --git a/admin/themes/default/template/plugins_new.tpl b/admin/themes/default/template/plugins_new.tpl
index e2ed85359..6546cdc38 100644
--- a/admin/themes/default/template/plugins_new.tpl
+++ b/admin/themes/default/template/plugins_new.tpl
@@ -1,25 +1,24 @@
-{known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" }
-{known_script id="jquery.ui.effects" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/effects.core.packed.js" }
-{known_script id="jquery.ui.blind" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/effects.blind.packed.js" }
+{combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js' }
+{combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/packed/effects.core.packed.js' }
+{combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/packed/effects.blind.packed.js' }
-<script type="text/javascript">
-jQuery().ready(function(){ldelim}
- jQuery("td[id^='desc_']").click(function() {ldelim}
- id = this.id.split('_');
- nb_lines = jQuery("#bigdesc_"+id[1]).html().split('<br>').length;
+{footer_script require='jquery.ui.effects.blind'}
+jQuery(document).ready(function(){ldelim}
+ jQuery("td[id^='desc_']").click(function() {ldelim}
+ id = this.id.split('_');
+ nb_lines = jQuery("#bigdesc_"+id[1]).html().split('<br>').length;
- $("#smalldesc_"+id[1]).toggle('blind', 1);
- if ($(this).hasClass('bigdesc')) {ldelim}
- $("#bigdesc_"+id[1]).toggle('blind', 1);
- $(this).removeClass('bigdesc');
- } else {ldelim}
- $("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30));
- $(this).addClass('bigdesc');
- }
- return false;
- });
+ jQuery("#smalldesc_"+id[1]).toggle('blind', 1);
+ if (jQuery(this).hasClass('bigdesc')) {ldelim}
+ jQuery("#bigdesc_"+id[1]).toggle('blind', 1);
+ } else {ldelim}
+ jQuery("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30));
+ }
+ jQuery(this).toggleClass('bigdesc');
+ return false;
+ });
});
-</script>
+{/footer_script}
<div class="titrePage">
<span class="sort">