diff --git a/js/acl.js b/js/acl.js index 35342a5c1..abdab97da 100644 --- a/js/acl.js +++ b/js/acl.js @@ -254,7 +254,7 @@ ACL.prototype.populate = function(data){ 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(); diff --git a/js/main.js b/js/main.js index 5cdf2a080..f17d1eaa0 100644 --- a/js/main.js +++ b/js/main.js @@ -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"); }); } diff --git a/view/theme/frost-mobile/js/acl.js b/view/theme/frost-mobile/js/acl.js index c22991dd6..4e319577f 100644 --- a/view/theme/frost-mobile/js/acl.js +++ b/view/theme/frost-mobile/js/acl.js @@ -254,7 +254,7 @@ ACL.prototype.populate = function(data){ 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(); diff --git a/view/theme/frost-mobile/js/main.js b/view/theme/frost-mobile/js/main.js index 197d49664..5a15b081b 100644 --- a/view/theme/frost-mobile/js/main.js +++ b/view/theme/frost-mobile/js/main.js @@ -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'); diff --git a/view/theme/frost/js/acl.js b/view/theme/frost/js/acl.js index 95067f174..1c843d7fe 100644 --- a/view/theme/frost/js/acl.js +++ b/view/theme/frost/js/acl.js @@ -254,7 +254,7 @@ ACL.prototype.populate = function(data){ 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(); diff --git a/view/theme/frost/js/main.js b/view/theme/frost/js/main.js index 91e79ffc3..e47ecff37 100644 --- a/view/theme/frost/js/main.js +++ b/view/theme/frost/js/main.js @@ -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');