onEmptyResults : function(){
if(this.tickable && this.editable){
+ this.hasFocus = false;
this.restrictHeight();
return;
}
validate : function()
{
+ if(this.getEl().hasClass('hidden')){
+ return true;
+ }
+
var v = this.getRawValue();
if(this.multiple){
var default_text = '-- SELECT --';
if(this.placeholder.length){
- default_text = this.placeholder + ' - ';
+ default_text = this.placeholder;
+ }
+
+ if(this.emptyTitle.length){
+ default_text += ' - ' + this.emptyTitle + ' -';
}
var opt = this.inputEl().createChild({