//console.log(html);
that.list_content.append(html);
});
- $(".acl-list-item img[data-src]").each(function(i, el){
- // Replace data-src attribute with src attribute for every image
+ $(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
- $(el).removeAttr("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");
});
}
//console.log(html);
that.list_content.append(html);
});
- $(".acl-list-item img[data-src]").each(function(i, el){
- // Replace data-src attribute with src attribute for every image
+ $(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
- $(el).removeAttr("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');
//console.log(html);
that.list_content.append(html);
});
- $(".acl-list-item img[data-src]").each(function(i, el){
- // Replace data-src attribute with src attribute for every image
+ $(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
+ // Add src attribute for images with a data-src attribute
$(el).attr('src', $(el).data("src"));
- $(el).removeAttr("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');