From 020011e8bd5f0e737fbdaccdda6d78fa17fc529c Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <legac@cppm.in2p3.fr>
Date: Mon, 10 Dec 2012 17:08:10 +0100
Subject: [PATCH] Use the method grid.reset.

---
 static/plugin_dbui/src/pgridexpertmenu.js | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/static/plugin_dbui/src/pgridexpertmenu.js b/static/plugin_dbui/src/pgridexpertmenu.js
index fe837fe9..f24492d5 100644
--- a/static/plugin_dbui/src/pgridexpertmenu.js
+++ b/static/plugin_dbui/src/pgridexpertmenu.js
@@ -43,21 +43,11 @@ App.grid.ExpertMenu = Ext.extend(Object, {
     },
     
     /**
-     * Handler to reset filter and to reload the underlying data store
+     * Handler to reset grid, its filters and its paging options
      */    
     onReset: function () {
-
-        var grid = this,
-            store = this.getStore();
-
-        // remove gridFilter conditions        
-        delete store.baseParams.where;
-        
-        // send the clear signal in order to reset gridFilter
-        store.fireEvent('clear');
-        
-        // load the store with fresh data
-        store.load();
+        var grid = this;
+        grid.reset();
     }
 });
 
-- 
GitLab