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");
+ $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');