[open-ils-commits] r9437 - trunk/Open-ILS/web/js/dojo/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 22 23:29:42 EDT 2008
Author: erickson
Date: 2008-04-22 22:50:31 -0400 (Tue, 22 Apr 2008)
New Revision: 9437
Modified:
trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
fixed what appears to be some copy paste errors. no longer requiring kwargs to be non-null on User create
Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js 2008-04-23 02:06:38 UTC (rev 9436)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js 2008-04-23 02:50:31 UTC (rev 9437)
@@ -33,6 +33,7 @@
authtime : null,
constructor : function ( kwargs ) {
+ kwargs = kwargs || {};
this.id = kwargs.id;
this.user = kwargs.user;
this.passwd = kwargs.passwd;
@@ -54,7 +55,7 @@
req.oncomplete = function(r) {
var user = r.recv().content();
_u.user = user;
- if (!openils.User.user) !openils.User.user = _u.user;
+ if (!openils.User.user) openils.User.user = _u.user;
if(onComplete)
onComplete(user);
}
@@ -109,9 +110,9 @@
authReq.oncomplete = function(rr) {
var data = rr.recv().content();
_u.authtoken = data.payload.authtoken;
- if (!openils.User.authtoken) !openils.User.authtoken = _u.authtoken;
+ if (!openils.User.authtoken) openils.User.authtoken = _u.authtoken;
_u.authtime = data.payload.authtime;
- if (!openils.User.authtime) !openils.User.authtime = _u.authtime;
+ if (!openils.User.authtime) openils.User.authtime = _u.authtime;
_u.getBySession(onComplete);
}
authReq.send();
More information about the open-ils-commits
mailing list