[open-ils-commits] r9541 - trunk/Open-ILS/web/js/dojo/openils

svn at svn.open-ils.org svn at svn.open-ils.org
Thu May 8 20:28:55 EDT 2008


Author: miker
Date: 2008-05-08 20:28:54 -0400 (Thu, 08 May 2008)
New Revision: 9541

Modified:
   trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
reorder if blocks so getById is possible

Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js	2008-05-08 21:31:28 UTC (rev 9540)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js	2008-05-09 00:28:54 UTC (rev 9541)
@@ -43,8 +43,8 @@
             this.location = kwargs.location;
             this.authcookie = kwargs.authcookie || openils.User.authcookie;
 
-            if (this.authtoken) this.getBySession();
-            else if (this.id && this.authtoken) this.user = this.getById( this.id );
+            if (this.id && this.authtoken) this.user = this.getById( this.id );
+            else if (this.authtoken) this.getBySession();
             else if (kwargs.login) this.login();
 
         },



More information about the open-ils-commits mailing list