mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-17 22:06:59 -04:00
Merge pull request #1616 from Alkarex/img_onload_recalc
Recalc sticky column on lazy img load
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user