From: erickson Date: Tue, 6 Oct 2009 20:55:48 +0000 (+0000) Subject: prevent bare 'null' from showing up in patron name X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=10b1a27e17cf9aa067a49d58ddcda8f2a6cf1fad;p=contrib%2FConifer.git 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 --- 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()})