提交 9221a1d8 编写于 作者: U unknown

修复保存组织的时候,管理员没有及时刷新的问题

上级 ba3ed6c9
......@@ -488,7 +488,6 @@ MWF.xApplication.Org.UnitExplorer.UnitContent = new Class({
}
},
_loadContent: function(){
debugger;
this._listBaseInfor();
this.loadListCount();
this._listIdentityMembers();
......@@ -1053,7 +1052,6 @@ MWF.xApplication.Org.UnitExplorer.UnitContent.BaseInfor = new Class({
this.loadAction();
},
getContentHtml: function(){
debugger;
var html = "<table width='100%' cellpadding='3px' cellspacing='5px'>";
html += "<tr><td class='inforTitle'>"+this.explorer.app.lp.unitName+":</td><td class='inforContent infor_name'></td>";
if (this.data.control.allowEdit) html += "<td class='inforTitle'>"+this.explorer.app.lp.unitUnique+":</td><td class='inforContent infor_unique'></td>";
......@@ -1264,7 +1262,7 @@ MWF.xApplication.Org.UnitExplorer.UnitContent.BaseInfor = new Class({
});
this.saveUnit(function(){
this.cancel();
this.cancel( null,true );
this.content.propertyContentScrollNode.unmask();
}.bind(this), function(xhr, text, error){
var errorText = error;
......@@ -1304,7 +1302,7 @@ MWF.xApplication.Org.UnitExplorer.UnitContent.BaseInfor = new Class({
if (cancel) cancel(xhr, text, error);
}.bind(this));
},
cancel: function(){
cancel: function( ev, flag ){
if (this.data.id){
var tdContents = this.editContentNode.getElements("td.inforContent");
tdContents[0].setStyles(this.style.baseInforContentNode).set("text", this.data.name || "");
......@@ -1317,8 +1315,10 @@ MWF.xApplication.Org.UnitExplorer.UnitContent.BaseInfor = new Class({
tdContents[6].setStyles(this.style.baseInforContentNode).empty();
tdContents[7].setStyles(this.style.baseInforContentNode).set("text", this.data.orderNumber || "");
if (this.data.oldSuperior) this.data.superior = this.data.oldSuperior;
if (this.data.oldControllerList) this.data.controllerList = this.data.oldControllerList;
if( !flag ){
if (this.data.oldSuperior) this.data.superior = this.data.oldSuperior;
if (this.data.oldControllerList) this.data.controllerList = this.data.oldControllerList;
}
delete this.data.oldSuperior;
delete this.data.oldControllerList;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册