fetch more than the default 10 (per page) distrib formulas; 500 is arbitrary, but...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Nov 2010 15:36:18 +0000 (15:36 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Nov 2010 15:36:18 +0000 (15:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18780 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/common/li_table.js

index 3e13d6f..42fca00 100644 (file)
@@ -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) {