diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-03-06 11:52:07 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-03-06 11:52:07 +0100 |
commit | 99e681c09faa245f9ac06a0a502c3c89a49490cb (patch) | |
tree | aa402ef4efa1a03367d9cb7ce142ac5f50384218 /view/js/main.js | |
parent | 4f5e9d77b24be8adeefa7823f52a2277808ec11a (diff) | |
download | volse-hubzilla-99e681c09faa245f9ac06a0a502c3c89a49490cb.tar.gz volse-hubzilla-99e681c09faa245f9ac06a0a502c3c89a49490cb.tar.bz2 volse-hubzilla-99e681c09faa245f9ac06a0a502c3c89a49490cb.zip |
do not collapse long nsfw content
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 2 |
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) { |