}
}else{
this.selectedIndex = -1;
- this.onLoad();
+ this.onLoad();
}
}
this.loading = this.list.select('.loading', true).first();
if(this.loading === null){
- Roo.log('here????');
this.list.createChild({
tag: 'div',
cls: 'loading roo-select2-more-results roo-select2-active',
var default_text = '-- SELECT --';
+ if(this.placeholder.length){
+ default_text = this.placeholder + ' - ';
+ }
+
var opt = this.inputEl().createChild({
tag: 'option',
value : 0,