Explorar o código

修复人员选择清空选项的时候,没有取消分类上的全选样式

unknown %!s(int64=5) %!d(string=hai) anos
pai
achega
474baac549

+ 0 - 1
o2web/source/x_component_Selector/Identity.js

@@ -1158,7 +1158,6 @@ MWF.xApplication.Selector.Identity.ItemGroupCategory = new Class({
         return count;
     },
     _getSelectedCount : function(){
-        debugger;
         if( typeOf(this.selectedCount) === "number" )return this.selectedCount;
         if( !this.selector.allGroupObjectByDn )return 0;
         var group = this.selector.allGroupObjectByDn[this.data.distinguishedName];

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

@@ -1963,7 +1963,6 @@ MWF.xApplication.Selector.Person.Item = new Class({
         });
     },
     clickItem: function( callback, checkValid ){
-        debugger;
         // if ( layout.mobile && this.selector.options.count.toInt()===1){
         //     this.selectedSingle( checkValid );
         // }else{
@@ -2054,7 +2053,6 @@ MWF.xApplication.Selector.Person.Item = new Class({
         if( checkValid )this.selector.fireEvent("valid", [this.selector, this]);
     },
     selected: function( checkValid, callback, selectedNode, bySelectAll ){
-        debugger;
         var count = this.selector.options.maxCount || this.selector.options.count;
         count = count.toInt();
         if (!count) count = 0;
@@ -2133,8 +2131,6 @@ MWF.xApplication.Selector.Person.Item = new Class({
             }.bind(this))
         }
 
-        debugger;
-
         if (this.selectedItem){
             this.selector.selectedItems.erase(this.selectedItem);
 
@@ -2275,7 +2271,6 @@ MWF.xApplication.Selector.Person.ItemSelected = new Class({
         if (this.items.indexOf(item)===-1) this.items.push(item);
     },
     check: function(){
-        debugger;
         if (this.selector.items.length){
             var items = this.selector.items.filter(function(item, index){
                 return item.data.distinguishedName === this.data.distinguishedName;

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

@@ -204,8 +204,6 @@ MWF.xApplication.Selector.UnitWithType.Item = new Class({
             ( this.data.woSubDirectUnitList || [] ).each(function(subData){
                 if( !this.selector.isExcluded( subData ) ) {
                     if ((!this.selector.options.unitType) || subData.typeList.indexOf(this.selector.options.unitType) !== -1) {
-
-                        debugger;
                         var unit = this.selector._newItem(subData, this.selector, this.children, this.level + 1, this);
                         this.selector.items.push( unit );
                         if( !this.subItems )this.subItems = [];
@@ -259,8 +257,6 @@ MWF.xApplication.Selector.UnitWithType.Item = new Class({
             this.data.woSubDirectUnitList.each(function(subData){
                 if( !this.selector.isExcluded( subData ) ) {
                     if ((!this.selector.options.unitType) || subData.typeList.indexOf(this.selector.options.unitType) !== -1) {
-
-                        debugger;
                         var unit = this.selector._newItem(subData, this.selector, this.children, this.level + 1, this, true);
                         unit.justItem = true;
                         unit.load();