From d02d0fe74bf7b48386d65b2615e0411e82395eb8 Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 8 Apr 2010 22:51:38 +0000 Subject: Feature 1557: slower animation on plugin description box. git-svn-id: http://piwigo.org/svn/trunk@5729 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/plugins_new.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/admin/themes/default/template/plugins_new.tpl b/admin/themes/default/template/plugins_new.tpl index f2c91aa85..e2ed85359 100644 --- a/admin/themes/default/template/plugins_new.tpl +++ b/admin/themes/default/template/plugins_new.tpl @@ -6,14 +6,16 @@ jQuery().ready(function(){ldelim} jQuery("td[id^='desc_']").click(function() {ldelim} id = this.id.split('_'); + nb_lines = jQuery("#bigdesc_"+id[1]).html().split('
').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); + $("#bigdesc_"+id[1]).toggle('blind', 50 + (nb_lines * 30)); $(this).addClass('bigdesc'); } - $("#smalldesc_"+id[1]).toggle('blind', 1); return false; }); }); @@ -34,7 +36,7 @@ jQuery().ready(function(){ldelim}
{foreach from=$plugins item=plugin name=plugins_loop} -
+
-- cgit v1.2.3
{$plugin.EXT_NAME}