bug fix #1135, show more is usable again

This commit is contained in:
hauke 2014-09-22 13:53:16 +02:00
parent 4ec5974074
commit 2743514791
10 changed files with 206 additions and 111 deletions

View file

@ -48,7 +48,7 @@
$(function() {
$.ajaxSetup({cache: false});
collapseHeight();
//collapseHeight();
/* setup tooltips *//*
$("a,.tt").each(function(){
@ -402,12 +402,10 @@
elemName = elems + ' ' + elemName;
}
$(elemName).each(function() {
if($(this).height() > 350) {
$('html').height($('html').height());
$(this).divgrow({ initialHeight: 300, showBrackets: false, speed: 0 });
$(this).addClass('divmore');
$('html').height('auto');
}
$('html').height($('html').height());
$(this).readmore({maxheight:350 , moreLink:'<a href="#" class="showmore">+ Show more</a>', lessLink:'<a href="#" class="showmore">+ Show less</a>'});
$(this).addClass('divmore');
$('html').height('auto');
});
}