mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update public.js
This commit is contained in:
@@ -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){
|
||||
asyncLoadImage(this, $(this).attr('data-src'));
|
||||
if ($(this).attr('data-src') != ''){
|
||||
asyncLoadImage(this, $(this).attr('data-src'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user