DataObjects/Core_image_type.php
[Pman.Core] / Pman.Login.js
index fc6bebb..dee0413 100644 (file)
@@ -1,9 +1,13 @@
 //<script type="text/javascript">
 
+/**
+ * login code -
+ * fires Pman 'authrefreshed'  event on every poll to server..
+ *
+ */
 
 /***
 re-arrange language code...
-
 * flipping language should be like this:
 * 
 * Ext.apply(_T, _T[lang]);
@@ -16,15 +20,8 @@ Pman.Login =  new Roo.util.Observable({
     
     events : {
         
-        'render' : true,
-        /**
-         * @event poll fired after server has been polled for login information
-         * which may also contain extra user info.
-         * 
-         */
-        
-        
-        'poll' : true,
+        'render' : true
+       
     },
     disabled : false,
     
@@ -76,6 +73,7 @@ Pman.Login =  new Roo.util.Observable({
                 this.fillAuth(res.data);   
                 this.checkFails =0;
                 Pman.onload();
+                return false;
             },
             failure : Pman.Login.show,
             scope : Pman.Login
@@ -156,6 +154,7 @@ Pman.Login =  new Roo.util.Observable({
         
         this.checkFails =0;
         Pman.onload();
+        return false;
     },
     
     fillAuth: function(au) {
@@ -164,6 +163,8 @@ Pman.Login =  new Roo.util.Observable({
         this.authUser = au;
         this.lastChecked = new Date();
         Pman.fireEvent('authrefreshed', au);
+        
+        
         //Pman.Tab.FaxQueue.newMaxId(au.faxMax);
         //Pman.Tab.FaxTab.setTitle(au.faxNumPending);
         
@@ -197,7 +198,7 @@ Pman.Login =  new Roo.util.Observable({
         Pman.Login.intervalID =  window.setInterval(function() {
                   Pman.Login.check(false);
                 }, 120000); // every 120 secs = 2mins..
-        
+        return true;
         
     },