[open-ils-commits] r18452 - in trunk/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:26:09 EDT 2010
Author: miker
Date: 2010-10-22 15:26:04 -0400 (Fri, 22 Oct 2010)
New Revision: 18452
Modified:
trunk/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js
trunk/Open-ILS/web/js/ui/default/acq/search/unified.js
trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js
Log:
Use standard JS syntax; var [...] seems to be a Spidermonkey extension
Modified: trunk/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js 2010-10-22 16:25:25 UTC (rev 18451)
+++ trunk/Open-ILS/web/js/ui/default/acq/financial/claim_eligible.js 2010-10-22 19:26:04 UTC (rev 18452)
@@ -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: trunk/Open-ILS/web/js/ui/default/acq/search/unified.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-10-22 16:25:25 UTC (rev 18451)
+++ trunk/Open-ILS/web/js/ui/default/acq/search/unified.js 2010-10-22 19:26:04 UTC (rev 18452)
@@ -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: trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-10-22 16:25:25 UTC (rev 18451)
+++ trunk/Open-ILS/xul/staff_client/server/serial/batch_receive.js 2010-10-22 19:26:04 UTC (rev 18452)
@@ -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