partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit d8ee22157dba9dc79244c56a1ad7d59c8a883124
parent 0e098a1ed51f825db5999ddb27349bccfe788da8
Author: Timo A. Hummel <timo@netraver.de>
Date:   Thu, 26 May 2011 17:34:36 +0200

Fixed paging problem when activating filter

Diffstat:
Mfrontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerList.js | 6++++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerListGrid.js | 6++++--
Mfrontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationListGrid.js | 6++++--
3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerList.js b/frontend/js/de.RaumZeitLabor.PartDB2/FootPrintManager/FootPrintManagerList.js @@ -82,11 +82,13 @@ de.RaumZeitLabor.PartDB2.FootPrintManagerList = Ext.extend(Ext.grid.GridPanel, { listeners: { 'startSearch': function (text) { this.store.proxy.call.setParameter("filter", text); - this.store.reload(); + this.store.proxy.call.setParameter("start", 0); + this.store.load({start: 0}); }.createDelegate(this), 'resetSearch': function (text) { this.store.proxy.call.setParameter("filter", ''); - this.store.reload(); + this.store.proxy.call.setParameter("start", 0); + this.store.load({start: 0}); }.createDelegate(this) }, id: 'filter' diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerListGrid.js b/frontend/js/de.RaumZeitLabor.PartDB2/ManufacturerManager/ManufacturerListGrid.js @@ -81,11 +81,13 @@ de.RaumZeitLabor.PartDB2.ManufacturerListGrid = Ext.extend(Ext.grid.GridPanel, { listeners: { 'startSearch': function (text) { this.store.proxy.call.setParameter("filter", text); - this.store.reload(); + this.store.proxy.call.setParameter("start", 0); + this.store.load({start: 0}); }.createDelegate(this), 'resetSearch': function (text) { this.store.proxy.call.setParameter("filter", ''); - this.store.reload(); + this.store.proxy.call.setParameter("start", 0); + this.store.load({start: 0}); }.createDelegate(this) }, id: 'filter' diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationListGrid.js b/frontend/js/de.RaumZeitLabor.PartDB2/StorageLocationManager/StorageLocationListGrid.js @@ -81,11 +81,13 @@ de.RaumZeitLabor.PartDB2.StorageLocationListGrid = Ext.extend(Ext.grid.GridPanel listeners: { 'startSearch': function (text) { this.store.proxy.call.setParameter("filter", text); - this.store.reload(); + this.store.proxy.call.setParameter("start", 0); + this.store.load({start: 0}); }.createDelegate(this), 'resetSearch': function (text) { this.store.proxy.call.setParameter("filter", ''); - this.store.reload(); + this.store.proxy.call.setParameter("start", 0); + this.store.load({start: 0}); }.createDelegate(this) }, id: 'filter'