aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/plugins_new.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-04-08 22:51:38 +0000
committerpatdenice <patdenice@piwigo.org>2010-04-08 22:51:38 +0000
commitd02d0fe74bf7b48386d65b2615e0411e82395eb8 (patch)
treec58086724412dafc7d279ea671bd2d193e4719d1 /admin/themes/default/template/plugins_new.tpl
parentcc2a765cdcadc8a8745fdaf6e4cdaf4e86fe74a0 (diff)
Feature 1557: slower animation on plugin description box.
git-svn-id: http://piwigo.org/svn/trunk@5729 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/plugins_new.tpl8
1 files 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('<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);
+ $("#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}
<fieldset>
<legend></legend>
{foreach from=$plugins item=plugin name=plugins_loop}
-<div class="pluginBox" id="plugin_{$plugin.ID}"}>
+<div class="pluginBox" id="plugin_{$plugin.ID}">
<table>
<tr>
<td class="pluginBoxNameCell">{$plugin.EXT_NAME}</td>