Feature 1557: slower animation on plugin description box.

git-svn-id: http://piwigo.org/svn/trunk@5729 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice 2010-04-08 22:51:38 +00:00
commit d02d0fe74b

View file

@ -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>