if(this.fireEvent('beforequery', qe)===false || qe.cancel){
return false;
}
+
+ Roo.log(qe);
+
q = qe.query;
forceAll = qe.forceAll;
if(forceAll === true || (q.length >= this.minChars)){
this.hasQuery = true;
-
+ Roo.log('in??');
if(this.lastQuery != q || this.alwaysQuery){
this.lastQuery = q;
if(this.mode == 'local'){
this.onLoad();
+ Roo.log('onload???');
}else{
if(this.allowBlank) {
- var default_text = (this.placeholder.length) ? this.placeholder : '-- SELECT --';
+ var default_text = '-- SELECT --';
+
+ if(this.placeholder.length){
+ default_text = this.placeholder;
+ }
+
+ if(this.emptyTitle.length){
+ default_text += ' - ' + this.emptyTitle + ' -';
+ }
var opt = this.inputEl().createChild({
tag: 'option',