aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-05 22:09:05 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-05 22:09:05 +0100
commit1ac9a4976fe6a84e3f0d9e405d929e45a0c1183c (patch)
treef9ef521bb215ccfc9ee17588abc78ccb4bdb219c /view
parent7c3193e26e514a58a778a06d0cdd7cca14cf9585 (diff)
downloadvolse-hubzilla-1ac9a4976fe6a84e3f0d9e405d929e45a0c1183c.tar.gz
volse-hubzilla-1ac9a4976fe6a84e3f0d9e405d929e45a0c1183c.tar.bz2
volse-hubzilla-1ac9a4976fe6a84e3f0d9e405d929e45a0c1183c.zip
Unbreak readmore
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f1b41bcbe..85aea9875 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -596,9 +596,11 @@ function updateConvItems(mode,data) {
function collapseHeight() {
$(".wall-item-body, .contact-info").each(function() {
- if(! $(this).hasClass('divmore')) {
- $(this).readmore({collapsedHeight: divmore_height, moreLink: '<a href="#">'+aStr['divgrowmore']+'</a>', lessLink: '<a href="#">'+aStr['divgrowless']+'</a>'});
- $(this).addClass('divmore');
+ if($(this).height() > divmore_height + 10) {
+ if(! $(this).hasClass('divmore')) {
+ $(this).readmore({collapsedHeight: divmore_height, moreLink: '<a href="#">'+aStr['divgrowmore']+'</a>', lessLink: '<a href="#">'+aStr['divgrowless']+'</a>'});
+ $(this).addClass('divmore');
+ }
}
});
}