aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-01-30 01:34:27 +0100
committerMario Vavti <mario@mariovavti.com>2016-01-30 01:34:27 +0100
commitb6543beca2f0e5e353b497099e3fa6b29bf47233 (patch)
treeefaffb17ff90d75badd92bdec3f15d7397ab5759
parentda198fdda50389d79f1c792d6e11369ec869a88e (diff)
downloadvolse-hubzilla-b6543beca2f0e5e353b497099e3fa6b29bf47233.tar.gz
volse-hubzilla-b6543beca2f0e5e353b497099e3fa6b29bf47233.tar.bz2
volse-hubzilla-b6543beca2f0e5e353b497099e3fa6b29bf47233.zip
do not make a difference if there are images or not for now
-rw-r--r--view/js/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index a37c23cf0..16f6b9213 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -625,7 +625,7 @@ function updateConvItems(mode,data) {
bimgs.load(function() {
bimgcount--;
if (! bimgcount) {
- collapseHeight(true);
+ collapseHeight();
}
});
} else {
@@ -634,13 +634,13 @@ function updateConvItems(mode,data) {
}
-function collapseHeight(below=false) {
+function collapseHeight() {
var origContentHeight = parseInt($("#region_2").height());
$(".wall-item-content, .directory-collapse").each(function() {
var orgHeight = parseInt($(this).height());
if(orgHeight > divmore_height) {
if(! $(this).hasClass('divmore')) {
- if((below=true) && ($(window).scrollTop() + ($(window).height() - divmore_height) < $(this).offset().top)) {
+ if($(window).scrollTop() + ($(window).height() - divmore_height) < $(this).offset().top) {
$(this).readmore({
speed: 0,
heightMargin: 50,