[open-ils-commits] r15023 - trunk/Open-ILS/xul/staff_client/server/patron (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Nov 25 08:41:19 EST 2009
Author: erickson
Date: 2009-11-25 08:41:18 -0500 (Wed, 25 Nov 2009)
New Revision: 15023
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/summary.js
Log:
patch from Joe Atzberger to silence some JS console warnings
Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2009-11-25 03:21:54 UTC (rev 15022)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary.js 2009-11-25 13:41:18 UTC (rev 15023)
@@ -273,7 +273,7 @@
function(e) {
return function() {
var val = obj.patron.ident_value();
- val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1');
+ if (val) val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); // must avoid val.replace if val is NULL
util.widgets.set_text(e, val);
};
}
@@ -298,7 +298,7 @@
function(e) {
return function() {
var val = obj.patron.ident_value2();
- val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1');
+ if (val) val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); // must avoid val.replace if val is NULL
util.widgets.set_text(e, val);
};
}
More information about the open-ils-commits
mailing list