修复了数据版本删除时提示错误的bug
This commit is contained in:
parent
33a8c86f49
commit
f806355673
|
@ -1740,11 +1740,11 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
if($ex)
|
||||
{
|
||||
$data = array("deleted"=>$id,"error"=>$this->alertbox('ok','删除成功'));
|
||||
$data = array("deleted"=>$id, "error"=>"删除成功");
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
}else{
|
||||
$data = array("error"=>$this->alertbox('error','删除失败,请确认权限后重试'));
|
||||
$data = array("error"=>'删除失败,请确认权限后重试');
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
}
|
||||
|
@ -1752,7 +1752,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$msg = "删除失败,请确认权限后重试";
|
||||
if($this->debug>0)
|
||||
{$msg .= $e->getMessage();}
|
||||
$data = array("error"=>$this->alertbox('error',$msg));
|
||||
$data = array("error"=>$msg);
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -77,12 +77,12 @@ function action(ac,id){
|
|||
{$('#changelog').val('');$('#commit_submit').attr('onclick','');}
|
||||
}
|
||||
else{
|
||||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_warning.png" /><h4>出现错误,请稍候再试</h4>'});
|
||||
$.colorbox({'innerWidth':'50%','html':'<h4>出现错误,请稍候再试</h4>'});
|
||||
}
|
||||
},
|
||||
'timeout': 30000,
|
||||
'error': function(){
|
||||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
||||
$.colorbox({'innerWidth':'50%','html':'<h4>处理中出现错误,请刷新页面后重试</h4>'});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue