X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Ffrost%2Fjs%2Fmain.js;h=91e79ffc383164f9619dd44e4e663fd8a0c7be49;hb=dbf8f711cffbc7b659a06856b2301820c66274ca;hp=4aaa7ddb74062b277d5f91783101c549348be9c2;hpb=1139adc2dcf47d3667b0120c28fc5932c61bc84f;p=friendica.git diff --git a/view/theme/frost/js/main.js b/view/theme/frost/js/main.js index 4aaa7ddb74..91e79ffc38 100644 --- a/view/theme/frost/js/main.js +++ b/view/theme/frost/js/main.js @@ -179,6 +179,12 @@ 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){