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,16 +115,19 @@ function SubmitForm(id, e) {
} }
function addResizeHandler(item, min, max) { function addResizeHandler(item, min, max) {
jQuery(item).toggle( jQuery(item).click(
function(){ function() {
jQuery(item).animate({ if (jQuery(item).hasClass('imgExpanded')) {
height: max jQuery(item).animate({
}); height: min
}, });
function(){ }
jQuery(item).animate({ else {
height: min jQuery(item).animate({
}); height: max
});
}
jQuery(item).toggleClass('imgExpanded');
} }
); );
} }