Small fix to Holding Code wizard widget
authorDan Wells <dbw2@calvin.edu>
Mon, 26 Mar 2012 20:17:03 +0000 (16:17 -0400)
committerDan Wells <dbw2@calvin.edu>
Mon, 26 Mar 2012 21:10:22 +0000 (17:10 -0400)
The issuance editor has a wizard widget for the holding code field
which expected a 'grid' as an argument, but then referenced a global
'iss_grid' variable.  This hurt reusability of this widget.

Signed-off-by: Dan Wells <dbw2@calvin.edu>

Open-ILS/web/js/ui/default/serial/subscription/issuance.js

index eb4fae4..3f4dfcf 100644 (file)
@@ -21,7 +21,7 @@ function fresh_scap_selector(grid) {
                     selector, "onChange", null, function() {
                         if (this.item) {
                             var widget =
-                                iss_grid.overrideEditWidgets.holding_type;
+                                grid.overrideEditWidgets.holding_type;
                             widget.attr("value", this.item.type);
                             widget.attr("disabled", true);
                         }