aboutsummaryrefslogtreecommitdiffstats
path: root/library/readmore.js
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-06 15:54:58 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-06 15:54:58 +0100
commit29e0bfee2f8e5a3e9a1d73f84c2c1f80b4637c3f (patch)
tree2c79c93e3045e9d1daa587eac7a7d9a4eae2ef54 /library/readmore.js
parentfac6963444fbaf1e776e35b1e283a080f1a24a43 (diff)
downloadvolse-hubzilla-29e0bfee2f8e5a3e9a1d73f84c2c1f80b4637c3f.tar.gz
volse-hubzilla-29e0bfee2f8e5a3e9a1d73f84c2c1f80b4637c3f.tar.bz2
volse-hubzilla-29e0bfee2f8e5a3e9a1d73f84c2c1f80b4637c3f.zip
Fix bug in readmore.js
Diffstat (limited to 'library/readmore.js')
-rw-r--r--library/readmore.js/readmore.js7
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();
- });
+ //});
}