Use standard JS syntax; var [...] seems to be a Spidermonkey extension
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Oct 2010 19:26:04 +0000 (19:26 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Oct 2010 19:26:04 +0000 (19:26 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18452 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js
Open-ILS/web/js/ui/default/acq/search/unified.js
Open-ILS/xul/staff_client/server/serial/batch_receive.js

index e75dfce..f82437e 100644 (file)
@@ -213,8 +213,8 @@ function init() {
     if (filter && filter.indexOf(":") != -1) {
         filter.split(",").forEach(
             function(chunk) {
-                var [key, value] = chunk.split(":");
-                finished_filter[key] = value;
+                var kvlist = chunk.split(":");
+                finished_filter[kvlist[0]] = kvlist[1];
             }
         );
     }
index 359c234..5174cda 100644 (file)
@@ -519,7 +519,9 @@ function TermManager() {
         var so = {};
 
         for (var id in this.widgets) {
-            var [hint, attr] = this._selector(id).getValue().split(":");
+            var kvlist = this._selector(id).getValue().split(":");
+            var hint = kvlist[0];
+            var attr = kvlist[1];
             if (!(hint && attr)) continue;
 
             var match_how =
index 553f76a..eda0c3a 100644 (file)
@@ -925,7 +925,9 @@ function BatchReceiver() {
 
     this.autogen_if_appropriate = function(textbox, item_id) {
         if (this._user_wants_autogen() && textbox.value) {
-            var [list, question] = this._get_autogen_potentials(item_id);
+            var kvlist = this._get_autogen_potentials(item_id);
+            var list = kvlist[0];
+            var question = kvlist[1];
             if (list.length) {
                 if (question && !confirm(S("autogen_barcodes.questionable")))
                     return;