From 1ce65490a16b426dc03e1f56e8b576c46167c5fd Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 10 Jun 2010 17:54:40 +0000 Subject: [PATCH] change the xulG tests to fix Save & Clone for new patrons git-svn-id: svn://svn.open-ils.org/ILS/trunk@16654 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/actor/user/register.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 a66569960..1979f91cd 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -58,17 +58,17 @@ function load() { 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 } } -- 2.11.0