Browse Source

No need to remove data-src attributes

Better comment string also
pull/573/head
Olaf Conradi 10 years ago
parent
commit
2943550fe2
  1. 2
      js/acl.js
  2. 3
      js/main.js
  3. 2
      view/theme/frost-mobile/js/acl.js
  4. 3
      view/theme/frost-mobile/js/main.js
  5. 2
      view/theme/frost/js/acl.js
  6. 3
      view/theme/frost/js/main.js

2
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();

3
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");
});
}

2
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();

3
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');

2
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();

3
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');

Loading…
Cancel
Save