Merge pull request #573 from oohlaf/fixes

Don't add src attributes inside acl-template
This commit is contained in:
Olaf Conradi
2013-01-02 05:32:19 -08:00
6 changed files with 9 additions and 15 deletions
+2 -3
View File
@@ -253,10 +253,9 @@ ACL.prototype.populate = function(data){
//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();
}
+1 -2
View File
@@ -183,9 +183,8 @@
});
$("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");
});
}
+2 -3
View File
@@ -253,10 +253,9 @@ ACL.prototype.populate = function(data){
//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();
}
+1 -2
View File
@@ -189,9 +189,8 @@
});
$("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');
+2 -3
View File
@@ -253,10 +253,9 @@ ACL.prototype.populate = function(data){
//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();
}
+1 -2
View File
@@ -181,9 +181,8 @@
});
$("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');