aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-07-22 14:14:20 +0200
committerMario Vavti <mario@mariovavti.com>2016-07-22 14:14:20 +0200
commit52db6490222be3ee7d3872b1af989c9430d4b892 (patch)
treede8ee67722744734bbea64ea9c7189a7cd3ad7d4 /library
parent38e46fff548729ba459d0a83a46fbfa0d844e85d (diff)
downloadvolse-hubzilla-52db6490222be3ee7d3872b1af989c9430d4b892.tar.gz
volse-hubzilla-52db6490222be3ee7d3872b1af989c9430d4b892.tar.bz2
volse-hubzilla-52db6490222be3ee7d3872b1af989c9430d4b892.zip
apply our custom patch to readmore.js
Diffstat (limited to 'library')
-rw-r--r--library/readmore.js/hubzilla-custom.patch13
-rw-r--r--library/readmore.js/readmore.js2
2 files changed, 14 insertions, 1 deletions
diff --git a/library/readmore.js/hubzilla-custom.patch b/library/readmore.js/hubzilla-custom.patch
new file mode 100644
index 000000000..fd3146152
--- /dev/null
+++ b/library/readmore.js/hubzilla-custom.patch
@@ -0,0 +1,13 @@
+diff --git a/library/readmore.js/readmore.js b/library/readmore.js/readmore.js
+index 34a624e..51222ce 100644
+--- a/library/readmore.js/readmore.js
++++ b/library/readmore.js/readmore.js
+@@ -246,7 +246,7 @@
+ collapsedHeight = $element.data('collapsedHeight');
+
+ if ($element.height() <= collapsedHeight) {
+- newHeight = $element.data('expandedHeight') + 'px';
++ newHeight = 100 + '%';
+ newLink = 'lessLink';
+ expanded = true;
+ }
diff --git a/library/readmore.js/readmore.js b/library/readmore.js/readmore.js
index 34a624eb9..51222ced0 100644
--- a/library/readmore.js/readmore.js
+++ b/library/readmore.js/readmore.js
@@ -246,7 +246,7 @@
collapsedHeight = $element.data('collapsedHeight');
if ($element.height() <= collapsedHeight) {
- newHeight = $element.data('expandedHeight') + 'px';
+ newHeight = 100 + '%';
newLink = 'lessLink';
expanded = true;
}