Просмотр исходного кода

人员选择组件增加afterCheckSelectSingleItem事件

unknown 5 лет назад
Родитель
Сommit
7f24870cac
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      o2web/source/x_component_Selector/Person.js

+ 0 - 4
o2web/source/x_component_Selector/Person.js

@@ -1458,20 +1458,16 @@ MWF.xApplication.Selector.Person = new Class({
     },
     },
     _selectSingleItem : function(){
     _selectSingleItem : function(){
         var _self = this;
         var _self = this;
-        var isSingleItem = false;
         var checkItem = function () {
         var checkItem = function () {
             if(this.items.length === 1 || this.subItems.length === 1 ){
             if(this.items.length === 1 || this.subItems.length === 1 ){
                 if( this.items.length === 1 && this.subItems.length === 0 ){
                 if( this.items.length === 1 && this.subItems.length === 0 ){
-                    isSingleItem = true;
                     if( !this.items[0].isSelected )this.items[0].clickItem();
                     if( !this.items[0].isSelected )this.items[0].clickItem();
                     this.fireEvent("afterSelectSingleItem",[this, this.items[0]]);
                     this.fireEvent("afterSelectSingleItem",[this, this.items[0]]);
                 }else if( this.items.length === 0 && this.subItems.length === 1 ){
                 }else if( this.items.length === 0 && this.subItems.length === 1 ){
-                    isSingleItem = true;
                     if( !this.items[0].isSelected )this.subItems[0].clickItem();
                     if( !this.items[0].isSelected )this.subItems[0].clickItem();
                     this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
                     this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
                 }else if( this.items.length === 1 && this.subItems.length === 1 ){
                 }else if( this.items.length === 1 && this.subItems.length === 1 ){
                     if( this.items[0] === this.subItems[0] ){
                     if( this.items[0] === this.subItems[0] ){
-                        isSingleItem = true;
                         if( !this.items[0].isSelected )this.items[0].clickItem();
                         if( !this.items[0].isSelected )this.items[0].clickItem();
                         this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
                         this.fireEvent("afterSelectSingleItem",[this, this.items[0]])
                     }else{
                     }else{