diff options
author | friendica <info@friendica.com> | 2015-01-06 11:26:53 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-06 11:26:53 -0800 |
commit | b8d3936e473011298bf58d28db5c95c489f5836f (patch) | |
tree | 602e5babdc37a1020bff39b2c996e660bd19926b /library | |
parent | 01e65ffbb49f963af4f75c12d743e2e773fb43a9 (diff) | |
parent | 1064be3a76a4343fa0ba3a054551dc2c04b1930d (diff) | |
download | volse-hubzilla-b8d3936e473011298bf58d28db5c95c489f5836f.tar.gz volse-hubzilla-b8d3936e473011298bf58d28db5c95c489f5836f.tar.bz2 volse-hubzilla-b8d3936e473011298bf58d28db5c95c489f5836f.zip |
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'library')
-rw-r--r-- | library/readmore.js/readmore.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/library/readmore.js/readmore.js b/library/readmore.js/readmore.js index 81cfb3cea..171f69776 100644 --- a/library/readmore.js/readmore.js +++ b/library/readmore.js/readmore.js @@ -148,7 +148,6 @@ this.element = element; this.options = $.extend({}, defaults, options); - $(this.element).data({ defaultHeight: this.options.collapsedHeight, heightMargin: this.options.heightMargin @@ -159,9 +158,11 @@ this._defaults = defaults; this._name = readmore; - window.addEventListener('load', function() { + // Waiting for the page to load doesn't work when there is dynamic content + // But usually we already have the content, so no need to wait + //window.addEventListener('load', function() { $this.init(); - }); + //}); } |