partkeepr

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

commit eb7cf5dd8bbbcd1f37b4230acc74174239772117
parent 8a9ad715cb0347c2043f14b665abacc1f0fdac63
Author: Timo A. Hummel <timo@netraver.de>
Date:   Thu, 26 May 2011 00:48:57 +0200

Added record limiting for the PartManagerService

Diffstat:
Mfrontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerListGrid.js | 2+-
Msrc/de/RaumZeitLabor/PartDB2/Part/PartManagerService.php | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerListGrid.js b/frontend/js/de.RaumZeitLabor.PartDB2/PartsManager/PartsManagerListGrid.js @@ -15,7 +15,7 @@ de.RaumZeitLabor.PartDB2.PartsManagerListGrid = Ext.extend(Ext.grid.GridPanel, { ], }); - var pageSize = 13; + var pageSize = 15; this.call = new org.jerrymouse.service.Call( "de.RaumZeitLabor.PartDB2.Part.PartManagerService", diff --git a/src/de/RaumZeitLabor/PartDB2/Part/PartManagerService.php b/src/de/RaumZeitLabor/PartDB2/Part/PartManagerService.php @@ -12,6 +12,7 @@ class PartManagerService extends Service { public function getParts () { $aParameters = array( "start" => $this->getParameter("start", 0), + "limit" => $this->getParameter("start", 15), "sort" => $this->getParameter("sort", "name"), "dir" => $this->getParameter("dir", "asc"), "filter" => $this->getParameter("filter", ""),