[open-ils-commits] r9026 -
trunk/Open-ILS/xul/staff_client/chrome/content/util
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Mar 14 17:53:49 EDT 2008
Author: phasefx
Date: 2008-03-14 17:20:10 -0400 (Fri, 14 Mar 2008)
New Revision: 9026
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/util/network.js
Log:
json number vs string again
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/network.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/network.js 2008-03-14 21:01:17 UTC (rev 9025)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/network.js 2008-03-14 21:20:10 UTC (rev 9026)
@@ -381,12 +381,12 @@
var result = obj.get_result(req);
if (!result) return req;
- if ( (typeof result.ilsevent != 'undefined') && (override_params.overridable_events.indexOf(result.ilsevent) != -1) ) {
+ if ( (typeof result.ilsevent != 'undefined') && (override_params.overridable_events.indexOf( Number(result.ilsevent) ) != -1) ) {
req = override([result]);
} else {
var found_good = false; var found_bad = false;
for (var i = 0; i < result.length; i++) {
- if ( (result[i].ilsevent != 'undefined') && (override_params.overridable_events.indexOf(result[i].ilsevent) != -1) ) {
+ if ( (result[i].ilsevent != 'undefined') && (override_params.overridable_events.indexOf( Number(result[i].ilsevent) ) != -1) ) {
found_good = true;
} else {
found_bad = true;
More information about the open-ils-commits
mailing list