From 10b1a27e17cf9aa067a49d58ddcda8f2a6cf1fad Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 6 Oct 2009 20:55:48 +0000 Subject: [PATCH] prevent bare 'null' from showing up in patron name git-svn-id: svn://svn.open-ils.org/ILS/trunk@14286 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/actor/user/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index b48e434406..50d1d150a6 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -857,7 +857,7 @@ function uEditNewAddr(evt, id, mkLinks) { ); } - link.innerHTML = addrUser[0] + ' ' + addrUser[1] + ' ' + addrUser[2]; // TODO i18n + link.innerHTML = (addrUser.map(function(name) { return (name) ? name+' ' : '' })+'').replace(/,/g,''); // TODO i18n link.onclick = function() { if(openils.XUL.isXUL()) { window.xulG.spawn_editor({ses:openils.User.authtoken, usr:addr.usr()}) -- 2.11.0