mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
Recalc sticky column on lazy img load
https://github.com/FreshRSS/FreshRSS/issues/1593
This commit is contained in:
1 parent
3108b2729f
commit
eb84d4f8ff
1 file changed
+1
@@ -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