]> git.mxchange.org Git - friendica.git/commitdiff
No need to remove data-src attributes
authorOlaf Conradi <olaf@conradi.org>
Wed, 2 Jan 2013 13:28:13 +0000 (14:28 +0100)
committerOlaf Conradi <olaf@conradi.org>
Wed, 2 Jan 2013 13:28:13 +0000 (14:28 +0100)
Better comment string also

js/acl.js
js/main.js
view/theme/frost-mobile/js/acl.js
view/theme/frost-mobile/js/main.js
view/theme/frost/js/acl.js
view/theme/frost/js/main.js

index 35342a5c14ad52891708f2cec9e119f7d61507f5..abdab97da19aa8fb035b984b3fb126a36534a38a 100644 (file)
--- 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();
index 5cdf2a08047d0a13bf7b290ef3f352b3b838b00e..f17d1eaa0f747a2790b3e3070b9944f59231d2bb 100644 (file)
                                });
 
                                $("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");
                                });
                        }
 
index c22991dd69d490ed1db3e1a5adbb35c06e50792e..4e319577f78b80f2aca06b4ae80e8372920c8f78 100644 (file)
@@ -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();
index 197d496646cfcdfab30acc123b7d23d8756ed482..5a15b081bd0cf51ad5286312c05f8295fb3ec20f 100644 (file)
                                });
 
                                $("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');
index 95067f17499a0283971537449cd3d5bcf65795ef..1c843d7fe383b669e6141ca1d68bcba9ac64194a 100644 (file)
@@ -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();
index 91e79ffc383164f9619dd44e4e663fd8a0c7be49..e47ecff376bd6f40dca6d66994ebe3564d49087d 100644 (file)
                                });
 
                                $("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');