html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen'));
nnm.append(html);
});
+
+ $j("img[data-src]", nnm).each(function(i, el){
+ // Add src attribute for images with a data-src attribute
+ $j(el).attr('src', $j(el).data("src"));
+ });
}
notif = eNotif.attr('count');
if (notif>0){