[open-ils-commits] r13831 - trunk/Open-ILS/web/js/dojo/openils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 13 17:07:08 EDT 2009
Author: erickson
Date: 2009-08-13 17:07:02 -0400 (Thu, 13 Aug 2009)
New Revision: 13831
Modified:
trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js
Log:
added support for limit/offset to pcrud search and retrieveall calls
Modified: trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js 2009-08-13 21:06:33 UTC (rev 13830)
+++ trunk/Open-ILS/web/js/dojo/openils/PermaCrud.js 2009-08-13 21:07:02 UTC (rev 13831)
@@ -109,6 +109,8 @@
var order_by = {};
if (opts.order_by) order_by.order_by = opts.order_by;
if (opts.select) order_by.select = opts.select;
+ if (opts.limit) order_by.limit = opts.limit;
+ if (opts.offset) order_by.offset = opts.offset;
var method = 'open-ils.pcrud.search.' + fm_class;
if(!opts.streaming) method += '.atomic';
@@ -153,6 +155,8 @@
var order_by = {};
if (opts.order_by) order_by.order_by = opts.order_by;
if (opts.select) order_by.select = opts.select;
+ if (opts.limit) order_by.limit = opts.limit;
+ if (opts.offset) order_by.offset = opts.offset;
var method = 'open-ils.pcrud.search.' + fm_class;
if(!opts.streaming) method += '.atomic';
More information about the open-ils-commits
mailing list