diff --git a/o2web/source/x_component_Selector/Person.js b/o2web/source/x_component_Selector/Person.js index 4fbab44654d1ffa0ebdf887abd4ebaf929bc1234..22ed34c798c09ba24a0bcfd7b7a32d3ab3c729eb 100644 --- a/o2web/source/x_component_Selector/Person.js +++ b/o2web/source/x_component_Selector/Person.js @@ -32,6 +32,7 @@ MWF.xApplication.Selector.Person = new Class({ "contentUrl" : "", //和默认的页面布局不一样的话,可以传入页面布局HTML URL "injectToBody" : false, //当传入HTML URL的时候是否插入到document.body, false的时候插入到this.container "selectSingleItem" : false, //当只有一个候选项的时候,是否默认选中 + "hiddenEmptyCategory" : false, "flatCategory" : false, //扁平化展现分类, "selectType" : "person", @@ -2482,8 +2483,12 @@ MWF.xApplication.Selector.Person.ItemCategory = new Class({ } if ( !this._hasChild()){ - this.actionNode.setStyle("background", "transparent"); - this.textNode.setStyle("color", "#777"); + if( this.selector.options.hiddenEmptyCategory ){ + this.node.hide() + }else{ + this.actionNode.setStyle("background", "transparent"); + this.textNode.setStyle("color", "#777"); + } } if( this.selectAllNode ){