[open-ils-commits] r18781 - branches/rel_2_0/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:37:13 EST 2010


Author: erickson
Date: 2010-11-18 10:37:11 -0500 (Thu, 18 Nov 2010)
New Revision: 18781

Modified:
   branches/rel_2_0/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: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-11-18 15:36:18 UTC (rev 18780)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/common/li_table.js	2010-11-18 15:37:11 UTC (rev 18781)
@@ -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