Pman.Login.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 12:28:07 +0000 (20:28 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 12:28:07 +0000 (20:28 +0800)
Pman.Login.js

index 4a46569..3cb181b 100644 (file)
@@ -162,7 +162,8 @@ Pman.Login =  new Roo.util.Observable({
         this.authUserId = au.id;
         this.authUser = au;
         this.lastChecked = new Date();
-        Pman.fireEvent('authrefreshed', au);
+        // if login is used on other applicaitons..
+        if (Pman.fireEvent) { Pman.fireEvent('authrefreshed', au); }
         
         
         //Pman.Tab.FaxQueue.newMaxId(au.faxMax);