fixed image display

This commit is contained in:
Roland Gruber 2013-07-21 11:31:20 +00:00
parent bf77abb0c1
commit 5e85ef39eb
1 changed files with 13 additions and 10 deletions

View File

@ -115,17 +115,20 @@ function SubmitForm(id, e) {
} }
function addResizeHandler(item, min, max) { function addResizeHandler(item, min, max) {
jQuery(item).toggle( jQuery(item).click(
function(){
jQuery(item).animate({
height: max
});
},
function() { function() {
if (jQuery(item).hasClass('imgExpanded')) {
jQuery(item).animate({ jQuery(item).animate({
height: min height: min
}); });
} }
else {
jQuery(item).animate({
height: max
});
}
jQuery(item).toggleClass('imgExpanded');
}
); );
} }