diff options
| author | 2017-08-24 18:15:47 +0200 | |
|---|---|---|
| committer | 2017-08-24 18:15:47 +0200 | |
| commit | 2f56d40b5a737978ffce1250792228cffdf0fcbd (patch) | |
| tree | 7ec457ffa2b421caad7d9c470b9a94acad0823dd | |
| parent | 2916637a701f387f9ac9f0ee4632d2cea9169e46 (diff) | |
| parent | eb84d4f8ff8a53f7eac52edf61951e5dba5906fc (diff) | |
Merge pull request #1616 from Alkarex/img_onload_recalc
Recalc sticky column on lazy img load
| -rw-r--r-- | p/scripts/main.js | 1 |
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'); }); |
