🐛 修复安装主题之后不关闭弹窗的问题

pull/56/head
ruibaby 2018-10-31 22:43:41 +08:00
parent bc322b271f
commit 8444583ecd
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@
var data = data.jqXHR.responseJSON;
if(data.code==1){
$("#uploadForm").hide(400);
halo.showMsgAndRedirect(data.msg,'success',1000,'/admin/themes');
halo.showMsgAndParentRedirect(data.msg,'success',1000,'/admin/themes');
}else{
halo.showMsg(data.msg,'error',2000);
}
@ -131,7 +131,7 @@
},
success: function (data) {
if(data.code==1){
halo.showMsgAndRedirect(data.msg,'success',1000,'/admin/themes');
halo.showMsgAndParentRedirect(data.msg,'success',1000,'/admin/themes');
}else {
halo.showMsg(data.msg,'error',2000);
$('#btnInstall').button('reset');