that.list_content.append(html);
});
$(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
- // Add data-src attribute with src attribute for every image
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
});
that.update_view();
});
$("img[data-src]", nnm).each(function(i, el){
- // Replace data-src attribute with src attribute for every image
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
- $(el).removeAttr("data-src");
});
}
that.list_content.append(html);
});
$(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
- // Add data-src attribute with src attribute for every image
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
});
that.update_view();
});
$("img[data-src]", nnm).each(function(i, el){
- // Replace data-src attribute with src attribute for every image
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
- $(el).removeAttr("data-src");
});
}
notif = eNotif.attr('count');
that.list_content.append(html);
});
$(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
- // Add data-src attribute with src attribute for every image
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
});
that.update_view();
});
$("img[data-src]", nnm).each(function(i, el){
- // Replace data-src attribute with src attribute for every image
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
- $(el).removeAttr("data-src");
});
}
notif = eNotif.attr('count');