diff --git a/lam/templates/lib/500_lam.js b/lam/templates/lib/500_lam.js index 35fcef2a..1321eced 100644 --- a/lam/templates/lib/500_lam.js +++ b/lam/templates/lib/500_lam.js @@ -115,16 +115,19 @@ function SubmitForm(id, e) { } function addResizeHandler(item, min, max) { - jQuery(item).toggle( - function(){ - jQuery(item).animate({ - height: max - }); - }, - function(){ - jQuery(item).animate({ - height: min - }); + jQuery(item).click( + function() { + if (jQuery(item).hasClass('imgExpanded')) { + jQuery(item).animate({ + height: min + }); + } + else { + jQuery(item).animate({ + height: max + }); + } + jQuery(item).toggleClass('imgExpanded'); } ); }