[open-ils-commits] r16654 - trunk/Open-ILS/web/js/ui/default/actor/user (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 10 13:54:44 EDT 2010
Author: phasefx
Date: 2010-06-10 13:54:40 -0400 (Thu, 10 Jun 2010)
New Revision: 16654
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
change the xulG tests to fix Save & Clone for new patrons
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-06-10 16:28:50 UTC (rev 16653)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2010-06-10 17:54:40 UTC (rev 16654)
@@ -58,17 +58,17 @@
if(xulG) {
if(xulG.ses) openils.User.authtoken = xulG.ses;
- if(xulG.clone !== null) cloneUser = xulG.clone;
- if(xulG.usr !== null) userId = xulG.usr
- if(xulG.params) {
+ if(typeof xulG.clone != 'undefined') cloneUser = xulG.clone;
+ if(typeof xulG.usr != 'undefined') userId = xulG.usr
+ if(typeof xulG.params != 'undefined') {
var parms = xulG.params;
- if(parms.ses)
+ if(typeof parms.ses != 'undefined')
openils.User.authtoken = parms.ses;
- if(parms.clone)
+ if(typeof parms.clone != 'undefined')
cloneUser = parms.clone;
- if(parms.usr !== null)
+ if(typeof parms.usr != 'undefined')
userId = parms.usr;
- if(parms.stage !== null)
+ if(typeof parms.stage != 'undefined')
stageUname = parms.stage
}
}
More information about the open-ils-commits
mailing list