[open-ils-commits] r18780 - trunk/Open-ILS/web/js/ui/default/acq/common (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 18 10:36:20 EST 2010
Author: erickson
Date: 2010-11-18 10:36:18 -0500 (Thu, 18 Nov 2010)
New Revision: 18780
Modified:
trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
Log:
fetch more than the default 10 (per page) distrib formulas; 500 is arbitrary, but still notably less than the infinity that was in effect before paging. todo: research optiosn for using the new autofieldwidget/dojo/pcrud-store instead
Modified: trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-11-18 15:14:15 UTC (rev 18779)
+++ trunk/Open-ILS/web/js/ui/default/acq/common/li_table.js 2010-11-18 15:36:18 UTC (rev 18780)
@@ -1274,13 +1274,14 @@
* This method formerly would not refetch the DF formulas if they'd been
* loaded already, but now it always re-fetches, since use_count changes.
*/
+ /** TODO: port distrib-formula selector to autofieldwidget+pcrud/dojo store */
this._fetchDistribFormulas = function(onload) {
fieldmapper.standardRequest(
["open-ils.acq",
"open-ils.acq.distribution_formula.ranged.retrieve.atomic"],
{
"async": true,
- "params": [openils.User.authtoken],
+ "params": [openils.User.authtoken, 0, 500],
"oncomplete": function(r) {
self.distribForms = openils.Util.readResponse(r);
if(!self.distribForms || self.distribForms.length == 0) {
More information about the open-ils-commits
mailing list