[open-ils-commits] r14286 - trunk/Open-ILS/web/js/ui/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Oct 6 16:55:54 EDT 2009
Author: erickson
Date: 2009-10-06 16:55:48 -0400 (Tue, 06 Oct 2009)
New Revision: 14286
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
prevent bare 'null' from showing up in patron name
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-10-06 20:42:36 UTC (rev 14285)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-10-06 20:55:48 UTC (rev 14286)
@@ -857,7 +857,7 @@
);
}
- 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()})
More information about the open-ils-commits
mailing list