Changeset 9541

Show
Ignore:
Timestamp:
05/08/08 20:28:54 (1 week ago)
Author:
miker
Message:

reorder if blocks so getById is possible

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/web/js/dojo/openils/User.js

    r9539 r9541  
    4444            this.authcookie = kwargs.authcookie || openils.User.authcookie; 
    4545 
    46             if (this.authtoken) this.getBySession(); 
    47             else if (this.id && this.authtoken) this.user = this.getById( this.id ); 
     46            if (this.id && this.authtoken) this.user = this.getById( this.id ); 
     47            else if (this.authtoken) this.getBySession(); 
    4848            else if (kwargs.login) this.login(); 
    4949