[open-ils-commits] r9941 - trunk/Open-ILS/web/js/dojo/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jun 26 15:37:00 EDT 2008
Author: erickson
Date: 2008-06-26 15:36:57 -0400 (Thu, 26 Jun 2008)
New Revision: 9941
Modified:
trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
setting globl .user var if not already set. removed debug alert
Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js 2008-06-26 19:35:44 UTC (rev 9940)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js 2008-06-26 19:36:57 UTC (rev 9941)
@@ -47,7 +47,6 @@
if (this.id && this.authtoken) this.user = this.getById( this.id );
else if (this.authtoken) this.getBySession();
else if (kwargs.login) this.login();
-
},
getBySession : function(onComplete) {
@@ -65,7 +64,9 @@
} else {
req.timeout = 10;
req.send();
- return _u.user = req.recv().content();
+ _u.user = req.recv().content();
+ if (!openils.User.user) openils.User.user = _u.user;
+ return _u.user;
}
},
@@ -101,7 +102,6 @@
initReq.oncomplete = function(r) {
var seed = r.recv().content();
- alert(seed);
var loginInfo = {
username : args.username,
password : hex_md5(seed + hex_md5(args.passwd)),
More information about the open-ils-commits
mailing list