diff --git a/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js b/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js index ff0816e0cb420f4e45d4fe237f64f271bfce3f25..5afac020d07578cd37e02d5fec5cd6583a2bbe35 100644 --- a/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js +++ b/o2web/source/x_component_Selector/IdentityWidthDutyCategoryByUnit.js @@ -496,20 +496,23 @@ MWF.xApplication.Selector.IdentityWidthDutyCategoryByUnit.ItemCategory = new Cla }, _loadSub: function(callback){ if (!this.loaded){ - if( this.data.identityList && this.data.identityList.length>0 ){ - this.data.identityList.sort( function(a, b){ - //this.selector.getUnitOrderNumber( a.unitLevelName ) - return (a.orderNumber || 9999999) - (b.orderNumber || 9999999); - }); - this.data.identityList.each( function( identity ){ - // if( !this.selector.isExcluded( identity ) ) { - // if( !this.isExisted( identity ) ){ - var item = this.selector._newItem(identity, this.selector, this.children, this.level + 1, this); - this.selector.items.push(item); - if(this.subItems)this.subItems.push( item ); + if( !this.itemLoaded ){ + if( this.data.identityList && this.data.identityList.length>0 ){ + this.data.identityList.sort( function(a, b){ + //this.selector.getUnitOrderNumber( a.unitLevelName ) + return (a.orderNumber || 9999999) - (b.orderNumber || 9999999); + }); + this.data.identityList.each( function( identity ){ + // if( !this.selector.isExcluded( identity ) ) { + // if( !this.isExisted( identity ) ){ + var item = this.selector._newItem(identity, this.selector, this.children, this.level + 1, this); + this.selector.items.push(item); + if(this.subItems)this.subItems.push( item ); + // } // } - // } - }.bind(this)) + }.bind(this)) + } + this.itemLoaded = true; } if( this.data.unitList && this.data.unitList.length ){