Roo.onReady(function () {
//MTrack.footerSetAndWait();
if (authUser) {
- setTimeout(MTrack.keepLoggedIn, 30000);
+ window.setTimeout(MTrack.keepLoggedIn, 30000);
}
MTrack.last_wh = Roo.lib.Dom.getViewHeight();
},
+
+ keepLoggedIn: function()
+ {
+ Roo.Ajax.request({
+ url : baseURL + '/Login.html',
+ method: 'POST',
+ data : { refresh : 1 },
+ success : function() {
+
+ window.setTimeout(MTrack.keepLoggedIn, 30000);
+ // what if it's false..currentURL = false;
+
+
+ }
+
+ })
+
+
+
+ },
/*
$(window)
footerSetAndWait : function () {
return;
- this.footerPosition();
+ /*this.footerPosition();
window.setTimeout(function () {
MTrack.footerSetAndWait();
}, 1500);
+ */
}
// ajax change project, and refresh body..
Roo.Ajax.request({
method: 'GET',
- url : baseURL + '/Project.html',
+ url : baseURL + '/Project',
params : { active_project_id : this.value },
success : function() {
// what if it's false..currentURL = false;