提交 06970e17 编写于 作者: 蔡祥熠

Merge branch 'fix/Selector.identity_with_unit' into 'develop'

Merge of fix/Selector.identity_with_unit to develop

See merge request o2oa/o2oa!69
......@@ -169,7 +169,8 @@ MWF.xApplication.Selector.IdentityWidthDuty.ItemCategory = new Class({
this.iconNode.setStyle("background-image", "url("+"/x_component_Selector/$Selector/"+style+"/icon/companyicon.png)");
},
loadSub: function(callback){
if (!this.loaded){
if (!this.loaded && !this.loading){
this.loading = true;
if (this.selector.options.units.length){
var action = MWF.Actions.get("x_organization_assemble_express");
var data = {"name":this.data.name, "unit":""};
......@@ -209,6 +210,7 @@ MWF.xApplication.Selector.IdentityWidthDuty.ItemCategory = new Class({
if (i>=count){
if (!this.loaded) {
this.loaded = true;
this.loading = false;
this.itemLoaded = true;
if (callback) callback();
}
......@@ -233,6 +235,7 @@ MWF.xApplication.Selector.IdentityWidthDuty.ItemCategory = new Class({
if (i>=count){
if (!this.loaded) {
this.loaded = true;
this.loading = false;
this.itemLoaded = true;
if (callback) callback();
}
......@@ -252,6 +255,7 @@ MWF.xApplication.Selector.IdentityWidthDuty.ItemCategory = new Class({
}
}.bind(this));
this.loaded = true;
this.loading = false;
if (callback) callback();
}.bind(this), null, this.data.name);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册