From: miker Date: Fri, 9 May 2008 00:28:54 +0000 (+0000) Subject: reorder if blocks so getById is possible X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a486e8b6240ec51491231ad199384252caf46e05;p=Evergreen.git reorder if blocks so getById is possible git-svn-id: svn://svn.open-ils.org/ILS/trunk@9541 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/User.js b/Open-ILS/web/js/dojo/openils/User.js index f189dcc470..875c695ace 100644 --- a/Open-ILS/web/js/dojo/openils/User.js +++ b/Open-ILS/web/js/dojo/openils/User.js @@ -43,8 +43,8 @@ if(!dojo._hasResource["openils.User"]) { 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(); },