if(typeof(this.loading) !== 'undefined' && this.loading !== null){
this.loading.hide();
}
- Roo.log(this.store.getCount());
+
if(this.store.getCount() > 0){
this.expand();
// private
onEmptyResults : function(){
+ Roo.log('empty result call');
if(this.tickable && this.editable){
this.restrictHeight();
return;
if(this.lastQuery != q || this.alwaysQuery){
this.lastQuery = q;
if(this.mode == 'local'){
-
this.selectedIndex = -1;
if(forceAll){
this.store.clearFilter();
this.onLoad();
+
}else{
this.store.baseParams[this.queryParam] = q;
this.hasFocus = false;
if(this.tickable){
+
this.okBtn.hide();
this.cancelBtn.hide();
this.trigger.show();
onSearchFieldClick : function(e)
{
+ Roo.log('in???');
+ Roo.log([this.hasFocus, e.getTarget().nodeName.toLowerCase() ]);
+
if(this.hasFocus && !this.disabled && e.getTarget().nodeName.toLowerCase() != 'button'){
+ Roo.log('onSearchFieldClick');
this.onTickableFooterButtonClick(e, false, false);
return;
}