Sha256: b373e4e0636f108794a28ad7f39e135d8885bfffdc831aa198e43f2b5748a4ce
Contents?: true
Size: 789 Bytes
Versions: 9
Compression:
Stored size: 789 Bytes
Contents
{ onSearch: function(el){ if (this.searchWindow) { this.searchWindow.show(); } else { this.loadNetzkeComponent({name: 'search_form', callback: function(win){ this.searchWindow = win; win.show(); win.items.first().on('apply', function(){ win.onSearch(); return false; // do not propagate the 'apply' event }, this); win.on('hide', function(){ var query = win.getQuery(); if (win.closeRes == 'search'){ var store = this.getStore(), proxy = store.getProxy(); proxy.extraParams.query = Ext.encode(query); store.load(); } el.toggle(query.length > 0); // toggle based on the state }, this); }, scope: this}); } } }
Version data entries
9 entries across 9 versions & 2 rubygems