no commit message
This commit is contained in:
@@ -27,7 +27,7 @@ $(document).ready(function(){
|
||||
if(v==2)s='<button onclick="upsho{rand}(2,'+d.id+',\''+d.key+'\')" class="btn btn-danger btn-sm" type="button">升级</button>';
|
||||
if(v==0)s='<button onclick="upsho{rand}(0,'+d.id+',\''+d.key+'\')" class="btn btn-info btn-sm" type="button">安装</button>';
|
||||
if(v==0||v==2){
|
||||
if(d.price=='0')s+=' <a href="javascript:;" onclick="downup{rand}('+d.id+',\''+d.name+'\')">文件对比</a>';
|
||||
if(d.price=='0')s+=' <a href="javascript:;" onclick="downup{rand}('+d.id+',\''+d.name+'\')">文件对比</a> <a href="javascript:;" onclick="opt{rand}.hulue('+d.id+')">忽略</a>';
|
||||
$('#shiw_{rand}').html('有系统模块需要升级/安装!');
|
||||
}
|
||||
if(d.id=='1'){
|
||||
@@ -142,6 +142,11 @@ $(document).ready(function(){
|
||||
},
|
||||
lianwcs:function(){
|
||||
js.open('?m=index&a=testnet');
|
||||
},
|
||||
hulue:function(_id){
|
||||
js.ajax(js.getajaxurl('hulueup','{mode}','{dir}'),{id:_id},function(s){
|
||||
a.reload();
|
||||
});
|
||||
}
|
||||
};
|
||||
upsho{rand}=function(lx,id,kes){
|
||||
@@ -152,7 +157,7 @@ $(document).ready(function(){
|
||||
addtabs({num:'upgradefile'+id+'','url':'system,upgrade,file,id='+id+'','name':'['+na+']文件对比'});
|
||||
}
|
||||
js.initbtn(c);
|
||||
|
||||
opt{rand} = c;
|
||||
upfetwontbu=function(lx, o){
|
||||
if(ISDEMO){js.msg('msg','演示系统不要操作');return;}
|
||||
if(!istongbu && lx!=3){
|
||||
|
||||
@@ -21,6 +21,7 @@ $(document).ready(function(){
|
||||
},{
|
||||
text:'',dataIndex:'ishui',renderer:function(v, d){
|
||||
var s='<font color="green">可更新</font>';
|
||||
s+=' <button type="button" onclick="upgradefile.upfile(this,'+d.id+')" class="btn btn-default btn-xs">更新</button>';
|
||||
if(v==1)s='已忽略';
|
||||
if(d.ting=='1')s='不同步更新模块';
|
||||
return s;
|
||||
@@ -41,10 +42,30 @@ $(document).ready(function(){
|
||||
js.ajax(js.getajaxurl('hullue','{mode}','{dir}'),{sid:sid,id:id,lx:lx},function(s){
|
||||
a.reload();
|
||||
},'post','','处理中...,处理完成');
|
||||
},
|
||||
upfile:function(o1, fid){
|
||||
o1.disabled = true;
|
||||
$(o1).html(js.getmsg('更新中...'));
|
||||
var ad = {};
|
||||
ad.id = id;
|
||||
ad.fileid = fid;
|
||||
ad.oii = 1;
|
||||
ad.lens = 0;
|
||||
ad.ban = '';
|
||||
js.ajax(js.getajaxurl('shengjianss','{mode}','{dir}'),ad,function(s){
|
||||
if(s=='ok'){
|
||||
$(o1).html('更新成功');
|
||||
}else{
|
||||
$(o1).html(s);
|
||||
}
|
||||
},'post',function(s){
|
||||
$(o1).html('失败');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
js.initbtn(c);
|
||||
upgradefile = c;
|
||||
|
||||
|
||||
});
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user