diff options
author | patdenice <patdenice@piwigo.org> | 2011-03-09 14:22:48 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-03-09 14:22:48 +0000 |
commit | 8b64b57a27139a671800c6768133be0a8bb6d35f (patch) | |
tree | 238df6041c9c5ab9edd93d2465d9fbf3b03598d7 /admin/themes/default/template/plugins_new.tpl | |
parent | 0552013a5765ffa46aabf93068eeb2109c2cb9e4 (diff) |
feature:2114
Simplify all admin templates.
git-svn-id: http://piwigo.org/svn/trunk@9586 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/plugins_new.tpl | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/admin/themes/default/template/plugins_new.tpl b/admin/themes/default/template/plugins_new.tpl index b61b4c948..425c8338a 100644 --- a/admin/themes/default/template/plugins_new.tpl +++ b/admin/themes/default/template/plugins_new.tpl @@ -1,23 +1,20 @@ -{combine_script id='jquery.effects' load='async' path='themes/default/js/ui/minified/jquery.effects.core.min.js' } -{combine_script id='jquery.effects.blind' load='async' require='jquery.effects' path='themes/default/js/ui/minified/jquery.effects.blind.min.js' } - -{footer_script require='jquery.effects.blind'} -jQuery(document).ready(function(){ldelim} - jQuery("td[id^='desc_']").click(function() {ldelim} +{footer_script require='jquery.effects.blind'}{literal} +jQuery(document).ready(function(){ + jQuery("td[id^='desc_']").click(function() { id = this.id.split('_'); nb_lines = jQuery("#bigdesc_"+id[1]).html().split('<br>').length; jQuery("#smalldesc_"+id[1]).toggle('blind', 1); - if (jQuery(this).hasClass('bigdesc')) {ldelim} + if (jQuery(this).hasClass('bigdesc')) { jQuery("#bigdesc_"+id[1]).toggle('blind', 1); - } else {ldelim} + } else { jQuery("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30)); } jQuery(this).toggleClass('bigdesc'); return false; }); }); -{/footer_script} +{/literal}{/footer_script} <div class="titrePage"> <span class="sort"> |