提交 8c28a56e 编写于 作者: J jyew2

修复应用市场查看图片多个应用只能看一个bug!

上级 ff3ead83
......@@ -210,28 +210,17 @@ MWF.xApplication.AppMarketV2.Application.Main = new Class({
picdiv.setProperty("data-original",this.collectUrl +'/o2_collect_assemble/jaxrs/attachment/download/'+peratt.id+"?c-token="+this.collectToken);
picdiv.setProperty("alt",peratt.name);
//picdiv.store("id",peratt.id);
/*
picdiv.addEvents({
"click": function(e){
//updateorinstall application
var d = this.retrieve("id");
if (d){
_self.openLargeImage(e,d);
}
}
})
*/
}
}.bind(this));
this.loadImgView();
this.loadImgView(this.appdata.id);
},
loadImgView:function(){
loadImgView:function(viewid){
if(this.viewer) this.viewer.destroy();
this.applicationintroducepics.setProperty("id","list");
this.applicationintroducepics.setProperty("id",viewid);
o2.loadCss(this.path+this.options.style+"/viewer.css", this.content,function(){
o2.load(this.path+this.options.style+"/viewer.js", function(){
this.viewer = new Viewer(document.getElementById('list'), {
this.viewer = new Viewer(document.getElementById(viewid), {
url: 'data-original'
});
}.bind(this));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册