|
@@ -18,6 +18,7 @@ MWF.O2Selector = new Class({
|
|
|
},
|
|
},
|
|
|
initialize: function(container, options){
|
|
initialize: function(container, options){
|
|
|
//MWF.xDesktop.requireApp("Selector", "Actions.RestActions", null, false);
|
|
//MWF.xDesktop.requireApp("Selector", "Actions.RestActions", null, false);
|
|
|
|
|
+ this.loading = true;
|
|
|
this.setOptions(options);
|
|
this.setOptions(options);
|
|
|
this.container = container;
|
|
this.container = container;
|
|
|
|
|
|
|
@@ -25,6 +26,7 @@ MWF.O2Selector = new Class({
|
|
|
MWF.xDesktop.requireApp("Selector", "MultipleSelector", function() {
|
|
MWF.xDesktop.requireApp("Selector", "MultipleSelector", function() {
|
|
|
this.selector = new MWF.xApplication.Selector.MultipleSelector(this.container, this.options );
|
|
this.selector = new MWF.xApplication.Selector.MultipleSelector(this.container, this.options );
|
|
|
this.selector.load();
|
|
this.selector.load();
|
|
|
|
|
+ this.loading = false;
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
}else{
|
|
}else{
|
|
|
var type = typeOf(this.options.type) === "string" ? this.options.type.capitalize() : this.options.type;
|
|
var type = typeOf(this.options.type) === "string" ? this.options.type.capitalize() : this.options.type;
|
|
@@ -33,21 +35,25 @@ MWF.O2Selector = new Class({
|
|
|
MWF.xDesktop.requireApp("Selector", "UnitWithType", function(){
|
|
MWF.xDesktop.requireApp("Selector", "UnitWithType", function(){
|
|
|
this.selector = new MWF.xApplication.Selector.UnitWithType(this.container, options);
|
|
this.selector = new MWF.xApplication.Selector.UnitWithType(this.container, options);
|
|
|
this.selector.load();
|
|
this.selector.load();
|
|
|
|
|
+ this.loading = false;
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
}else if ((type.toLowerCase()==="identity") && ((this.options.dutys) && this.options.dutys.length) && this.options.categoryType.toLowerCase()==="duty"){
|
|
}else if ((type.toLowerCase()==="identity") && ((this.options.dutys) && this.options.dutys.length) && this.options.categoryType.toLowerCase()==="duty"){
|
|
|
MWF.xDesktop.requireApp("Selector", "IdentityWidthDuty", function(){
|
|
MWF.xDesktop.requireApp("Selector", "IdentityWidthDuty", function(){
|
|
|
this.selector = new MWF.xApplication.Selector.IdentityWidthDuty(this.container, options);
|
|
this.selector = new MWF.xApplication.Selector.IdentityWidthDuty(this.container, options);
|
|
|
this.selector.load();
|
|
this.selector.load();
|
|
|
|
|
+ this.loading = false;
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
}else if ((type.toLowerCase()==="identity") && ((this.options.dutys) && this.options.dutys.length) && this.options.categoryType.toLowerCase()==="unit"){
|
|
}else if ((type.toLowerCase()==="identity") && ((this.options.dutys) && this.options.dutys.length) && this.options.categoryType.toLowerCase()==="unit"){
|
|
|
MWF.xDesktop.requireApp("Selector", "IdentityWidthDutyCategoryByUnit", function(){
|
|
MWF.xDesktop.requireApp("Selector", "IdentityWidthDutyCategoryByUnit", function(){
|
|
|
this.selector = new MWF.xApplication.Selector.IdentityWidthDutyCategoryByUnit(this.container, options);
|
|
this.selector = new MWF.xApplication.Selector.IdentityWidthDutyCategoryByUnit(this.container, options);
|
|
|
this.selector.load();
|
|
this.selector.load();
|
|
|
|
|
+ this.loading = false;
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
}else{
|
|
}else{
|
|
|
MWF.xDesktop.requireApp("Selector", type, function(){
|
|
MWF.xDesktop.requireApp("Selector", type, function(){
|
|
|
this.selector = new MWF.xApplication.Selector[type](this.container, options);
|
|
this.selector = new MWF.xApplication.Selector[type](this.container, options);
|
|
|
this.selector.load();
|
|
this.selector.load();
|
|
|
|
|
+ this.loading = false;
|
|
|
}.bind(this));
|
|
}.bind(this));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|