提交 9d002414 编写于 作者: U unknown

修复删除分类时有文档的情况下无提示的问题

上级 e78ea627
......@@ -982,11 +982,19 @@ MWF.xApplication.cms.ColumnManager.CategoryExplorer.Category = new Class({
}.bind(this),function(xhr, text, error){
var errorText = error;
if (xhr) errorText = xhr.responseText;
if( errorText.indexOf( "referenced" ) > -1 ){
var lp = this.explorer.app.lp.category;
var text = lp.deleteFailAsHasDocument.replace(/{title}/g, this.data.name );
this.app.notice( text,"error");
try{
var errorObj = JSON.parse(errorText);
if( errorObj.message ){
this.app.notice( errorObj.message,"error");
}
}catch(e){
}
// if( errorText.indexOf( "referenced" ) > -1 ){
// var lp = this.explorer.app.lp.category;
// var text = lp.deleteFailAsHasDocument.replace(/{title}/g, this.data.name );
// this.app.notice( text,"error");
// }
}.bind(this));
},
moveCategory: function(e){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册