aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-02 12:40:40 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-02 12:40:40 +0100
commitf1245206ceadd60fec4bd00948c115f74ad6dbd7 (patch)
tree3283f7764ab05e7f2cf00abaf712364a200832a6 /view/js/main.js
parent7f453949a17f4d3cd755ab5fc96be21396c9cc91 (diff)
downloadvolse-hubzilla-f1245206ceadd60fec4bd00948c115f74ad6dbd7.tar.gz
volse-hubzilla-f1245206ceadd60fec4bd00948c115f74ad6dbd7.tar.bz2
volse-hubzilla-f1245206ceadd60fec4bd00948c115f74ad6dbd7.zip
change aside width to reflect recent widget style changes
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 220898efd..2b13acc3d 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -640,7 +640,10 @@ function collapseHeight() {
var orgHeight = parseInt($(this).css('height'));
if(orgHeight > divmore_height) {
if(! $(this).hasClass('divmore')) {
- if($(window).scrollTop() + ($(window).height() - divmore_height) < $(this).offset().top) {
+
+ var trigger = $(window).scrollTop() + ($(window).height() - divmore_height) < $(this).offset().top ? true : false;
+
+ if(trigger) {
$(this).readmore({
speed: 0,
heightMargin: 50,