git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@76 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-03-05 15:34:08 +00:00
parent 752046fd09
commit a804de5c5d
12 changed files with 57 additions and 22 deletions
+12 -1
View File
@@ -44,7 +44,6 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/category/categoryViewT
$(html).appendTo($ul).enhanceWithin();
$ul.listview("refresh");
//$ul.trigger("updatelayout");
}
$.mobile.loading('hide');
@@ -53,6 +52,18 @@ define(['jquery', 'underscore', 'backbone', 'text!modules/category/categoryViewT
},
onShowed: function(){
$('body').scrollTop(0);
setTimeout(function(){
$('img[data-src!=""]').each(function(index, item){
setTimeout(function(){
var img = new Image();
img.onload = function() {
$(item).removeAttr("data-src");
$(item).attr("src",this.src);
}
img.src = $(item).attr("data-src");
}, 100);
});
}, 100);
},
//render the content into div of view
render: function () {