Update public.js

pull/109/head
midoks 7 years ago
parent 7d54737873
commit 4d91950660
  1. 6
      static/app/public.js

@ -1469,6 +1469,10 @@ $(function(){
function asyncLoadImage(obj, url){
if (typeof(url) == 'undefined'){
return;
}
loadImage(obj, url, showImage);
function loadImage(obj,url,callback){
@ -1491,7 +1495,9 @@ function asyncLoadImage(obj, url){
function loadImage(){
$('img').each(function(i){
if ($(this).attr('data-src') != ''){
asyncLoadImage(this, $(this).attr('data-src'));
}
});
}

Loading…
Cancel
Save