From: erickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Date: Thu, 18 Nov 2010 15:36:18 +0000 (+0000)
Subject: fetch more than the default 10 (per page) distrib formulas;  500 is arbitrary, but... 
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=98194362f2282f7a6aeae9479cabd1202eecc0c6;p=evergreen%2Fmasslnc.git

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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18780 dcc99617-32d9-48b4-a31d-7c20da2025e4
---

diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js
index 3e13d6f32d..42fca003e2 100644
--- a/Open-ILS/web/js/ui/default/acq/common/li_table.js
+++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js
@@ -1274,13 +1274,14 @@ function AcqLiTable() {
      * 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) {