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) {
jQuery(item).toggle(
function(){
jQuery(item).animate({
height: max
});
},
function(){
jQuery(item).click(
function() {
if (jQuery(item).hasClass('imgExpanded')) {
jQuery(item).animate({
height: min
});
}
else {
jQuery(item).animate({
height: max
});
}
jQuery(item).toggleClass('imgExpanded');
}
);
}