Sha256: 020081157d2cb6239038314e5a9a80284e5564601ed6b06a555ae8a6bfba53a6

Contents?: true

Size: 856 Bytes

Versions: 9

Compression:

Stored size: 856 Bytes

Contents

{
  /**
   * Handler for the `search` action
   * @method netzkeOnSearch
   */
  netzkeOnSearch: function(el){
    if (this.searchWindow) {
      this.searchWindow.show();
    } else {
      this.netzkeLoadComponent('search_window', {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 = query;
            store.load();
          }
          el.toggle(query.length > 0); // toggle based on the state
        }, this);
      }, scope: this});
    }
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
netzke-basepack-6.5.0.0 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-6.5.0.0.rc2 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-6.5.0.0.rc1 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-1.0.1.0 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-1.0.0.1 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-1.0.0.0 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-1.0.0.0.pre3 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-1.0.0.0.pre2 lib/netzke/grid/base/client/advanced_search.js
netzke-basepack-1.0.0.0.pre lib/netzke/grid/base/client/advanced_search.js