prevent bare 'null' from showing up in patron name
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Oct 2009 20:55:48 +0000 (20:55 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Oct 2009 20:55:48 +0000 (20:55 +0000)
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

index b48e434..50d1d15 100644 (file)
@@ -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()})