mirror of
https://github.com/friendica/friendica
synced 2024-11-20 16:23:40 +00:00
No need to remove data-src attributes
Better comment string also
This commit is contained in:
parent
6a2bd8b29f
commit
2943550fe2
6 changed files with 6 additions and 9 deletions
|
@ -254,7 +254,7 @@ ACL.prototype.populate = function(data){
|
||||||
that.list_content.append(html);
|
that.list_content.append(html);
|
||||||
});
|
});
|
||||||
$(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
|
$(".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"));
|
$(el).attr('src', $(el).data("src"));
|
||||||
});
|
});
|
||||||
that.update_view();
|
that.update_view();
|
||||||
|
|
|
@ -183,9 +183,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("img[data-src]", nnm).each(function(i, el){
|
$("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).attr('src', $(el).data("src"));
|
||||||
$(el).removeAttr("data-src");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -254,7 +254,7 @@ ACL.prototype.populate = function(data){
|
||||||
that.list_content.append(html);
|
that.list_content.append(html);
|
||||||
});
|
});
|
||||||
$(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
|
$(".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"));
|
$(el).attr('src', $(el).data("src"));
|
||||||
});
|
});
|
||||||
that.update_view();
|
that.update_view();
|
||||||
|
|
|
@ -189,9 +189,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("img[data-src]", nnm).each(function(i, el){
|
$("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).attr('src', $(el).data("src"));
|
||||||
$(el).removeAttr("data-src");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
notif = eNotif.attr('count');
|
notif = eNotif.attr('count');
|
||||||
|
|
|
@ -254,7 +254,7 @@ ACL.prototype.populate = function(data){
|
||||||
that.list_content.append(html);
|
that.list_content.append(html);
|
||||||
});
|
});
|
||||||
$(".acl-list-item[rel!=acl-template] img[data-src]").each(function(i, el){
|
$(".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"));
|
$(el).attr('src', $(el).data("src"));
|
||||||
});
|
});
|
||||||
that.update_view();
|
that.update_view();
|
||||||
|
|
|
@ -181,9 +181,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
$("img[data-src]", nnm).each(function(i, el){
|
$("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).attr('src', $(el).data("src"));
|
||||||
$(el).removeAttr("data-src");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
notif = eNotif.attr('count');
|
notif = eNotif.attr('count');
|
||||||
|
|
Loading…
Reference in a new issue