From 1e4ff73547a7f9b11ae61c1def3e9666abb34204 Mon Sep 17 00:00:00 2001 From: pines Date: Mon, 25 Sep 2006 14:27:17 +0000 Subject: [PATCH] obscure ident information in patron summary if the value ends with 4 digits git-svn-id: svn://svn.open-ils.org/ILS/trunk@6209 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/summary.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index 0bcb0ae9c1..c242f2cf34 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -250,9 +250,9 @@ patron.summary.prototype = { ['render'], function(e) { return function() { - e.setAttribute('value', - obj.patron.ident_value() - ); + var val = obj.patron.ident_value(); + val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); + e.setAttribute('value', val); }; } ], @@ -275,9 +275,9 @@ patron.summary.prototype = { ['render'], function(e) { return function() { - e.setAttribute('value', - obj.patron.ident_value2() - ); + var val = obj.patron.ident_value2(); + val = val.replace(/.+(\d\d\d\d)$/,'xxxx$1'); + e.setAttribute('value', val); }; } ], -- 2.11.0