aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-06 11:52:07 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-06 11:53:06 +0100
commit4471c45fb75792acbc981b102f4e8eb632780e9d (patch)
treee48b904c326b7e47bfdee8798794cc8292fded6d
parenta16530360290ff4795defd96c0fb8568cbf4e3f9 (diff)
downloadvolse-hubzilla-4471c45fb75792acbc981b102f4e8eb632780e9d.tar.gz
volse-hubzilla-4471c45fb75792acbc981b102f4e8eb632780e9d.tar.bz2
volse-hubzilla-4471c45fb75792acbc981b102f4e8eb632780e9d.zip
do not collapse long nsfw content
-rw-r--r--view/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 5de4aa9a2..db7ad110b 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -695,7 +695,7 @@ function collapseHeight() {
$(".wall-item-content, .directory-collapse").each(function() {
var orgHeight = $(this).outerHeight(true);
if(orgHeight > divmore_height) {
- if(! $(this).hasClass('divmore')) {
+ if(! $(this).hasClass('divmore') && $(this).has('div.no-collapse').length == 0) {
// check if we will collapse some content above the visible content and compensate the diff later
if($(this).offset().top + divmore_height - $(window).scrollTop() + cDiff - ($(".divgrow-showmore").outerHeight() * i) < 65) {