|
@@ -922,12 +922,12 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
|
|
|
this.loadSub(function(){
|
|
this.loadSub(function(){
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
if( firstLoaded ){
|
|
if( firstLoaded ){
|
|
|
- this.selector.fireEvent("expand", [this] );
|
|
|
|
|
if( !this.selector.isFlatCategory ){
|
|
if( !this.selector.isFlatCategory ){
|
|
|
this.children.setStyles({"display": "block", "height": "auto"});
|
|
this.children.setStyles({"display": "block", "height": "auto"});
|
|
|
this.actionNode.setStyles(this.selector.css.selectorItemCategoryActionNode_expand);
|
|
this.actionNode.setStyles(this.selector.css.selectorItemCategoryActionNode_expand);
|
|
|
this.isExpand = true;
|
|
this.isExpand = true;
|
|
|
}
|
|
}
|
|
|
|
|
+ this.selector.fireEvent("expand", [this] );
|
|
|
// this.checkSelectAll();
|
|
// this.checkSelectAll();
|
|
|
}else{
|
|
}else{
|
|
|
var display = this.children.getStyle("display");
|
|
var display = this.children.getStyle("display");
|
|
@@ -936,11 +936,13 @@ MWF.xApplication.Selector.Identity.ItemCategory = new Class({
|
|
|
this.children.setStyles({"display": "block", "height": "auto"});
|
|
this.children.setStyles({"display": "block", "height": "auto"});
|
|
|
this.actionNode.setStyles(this.selector.css.selectorItemCategoryActionNode_expand);
|
|
this.actionNode.setStyles(this.selector.css.selectorItemCategoryActionNode_expand);
|
|
|
this.isExpand = true;
|
|
this.isExpand = true;
|
|
|
|
|
+ this.selector.fireEvent("expand", [this] );
|
|
|
}else{
|
|
}else{
|
|
|
this.selector.fireEvent("collapse", [this] );
|
|
this.selector.fireEvent("collapse", [this] );
|
|
|
this.children.setStyles({"display": "none", "height": "0px"});
|
|
this.children.setStyles({"display": "none", "height": "0px"});
|
|
|
this.actionNode.setStyles(this.selector.css.selectorItemCategoryActionNode_collapse);
|
|
this.actionNode.setStyles(this.selector.css.selectorItemCategoryActionNode_collapse);
|
|
|
this.isExpand = false;
|
|
this.isExpand = false;
|
|
|
|
|
+ this.selector.fireEvent("expand", [this] );
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(callback)callback();
|
|
if(callback)callback();
|