提交 214587ce 编写于 作者: U unknown

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

上级 8e6f3c1b
......@@ -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];
......
......@@ -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;
......
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册