]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frost/js/main.js
Merge remote-tracking branch 'upstream/master'
[friendica.git] / view / theme / frost / js / main.js
index 91e79ffc383164f9619dd44e4e663fd8a0c7be49..3f2f1356945deae1ca122638c86b4bb1032805b3 100644 (file)
                                        nnm.append(html);
                                });
 
-                               $("img[data-src]", nnm).each(function(i, el){
-                                       // Replace data-src attribute with src attribute for every image
-                                       $(el).attr('src', $(el).data("src"));
-                                       $(el).removeAttr("data-src");
+                               $j("img[data-src]", nnm).each(function(i, el){
+                                       // Add src attribute for images with a data-src attribute
+                                       $j(el).attr('src', $j(el).data("src"));
                                });
                        }
                        notif = eNotif.attr('count');