]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost/js/main.js
Fix browser prefetch in notifications menu
[friendica.git] / view / theme / frost / js / main.js
index 4aaa7ddb74062b277d5f91783101c549348be9c2..91e79ffc383164f9619dd44e4e663fd8a0c7be49 100644 (file)
                                        html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen'));
                                        nnm.append(html);
                                });
+
+                               $("img[data-src]", nnm).each(function(i, el){
+                                       // Replace data-src attribute with src attribute for every image
+                                       $(el).attr('src', $(el).data("src"));
+                                       $(el).removeAttr("data-src");
+                               });
                        }
                        notif = eNotif.attr('count');
                        if (notif>0){