aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-20 10:21:08 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2017-08-20 10:21:08 +0200
commiteb84d4f8ff8a53f7eac52edf61951e5dba5906fc (patch)
tree3495b690252d511b60f8d3db1f469665f9b11643 /p
parent3108b2729f79ccaf5f8ba951a52ee35d28e2adb2 (diff)
Recalc sticky column on lazy img load
https://github.com/FreshRSS/FreshRSS/issues/1593
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 8081b7f38..117e8a598 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -227,6 +227,7 @@ function toggleContent(new_active, old_active) {
if (context.does_lazyload) {
new_active.find('img[data-original], iframe[data-original]').each(function () {
+ this.onload = function () { $(document.body).trigger("sticky_kit:recalc"); };
this.setAttribute('src', this.getAttribute('data-original'));
this.removeAttribute('data-original');
});