[open-ils-commits] r18453 - in branches/rel_2_0/Open-ILS: web/js/ui/default/acq/financial web/js/ui/default/acq/search xul/staff_client/server/serial (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 22 15:27:26 EDT 2010
Author: miker
Date: 2010-10-22 15:27:21 -0400 (Fri, 22 Oct 2010)
New Revision: 18453
Modified:
branches/rel_2_0/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js
branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js
branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js
Log:
Use standard JS syntax; var [...] seems to be a Spidermonkey extension
Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js 2010-10-22 19:26:04 UTC (rev 18452)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js 2010-10-22 19:27:21 UTC (rev 18453)
@@ -213,8 +213,8 @@
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];
}
);
}
Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-10-22 19:26:04 UTC (rev 18452)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-10-22 19:27:21 UTC (rev 18453)
@@ -519,7 +519,9 @@
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 =
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-10-22 19:26:04 UTC (rev 18452)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-10-22 19:27:21 UTC (rev 18453)
@@ -925,7 +925,9 @@
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;
More information about the open-ils-commits
mailing list