//<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]);
events : {
'render' : true
+
},
disabled : false,
//console.log('call failure');
return Pman.Login.failure(response,opts);
}
+
+
if (!res.data.id) { // id=0 == login failure.
return this.show(true);
}
this.fillAuth(res.data);
this.checkFails =0;
Pman.onload();
+ return false;
},
failure : Pman.Login.show,
scope : Pman.Login
this.checkFails =0;
Pman.onload();
+ return false;
},
fillAuth: function(au) {
this.authUser = au;
this.lastChecked = new Date();
Pman.fireEvent('authrefreshed', au);
+
+
//Pman.Tab.FaxQueue.newMaxId(au.faxMax);
//Pman.Tab.FaxTab.setTitle(au.faxNumPending);
Pman.Login.intervalID = window.setInterval(function() {
Pman.Login.check(false);
}, 120000); // every 120 secs = 2mins..
-
+ return true;
},