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

Version Path
netzke-basepack-0.7.7 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-zh-0.7.6 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.6 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.5 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.4 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.3 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.2 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.1 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js
netzke-basepack-0.7.0 lib/netzke/basepack/grid_panel/javascripts/advanced_search.js