{
Roo.onReady(function () {
- MTrack.footerSetAndWait();
+ //MTrack.footerSetAndWait();
if (authUser) {
- setTimeout(MTrack.keepLoggedIn, 30000);
+ window.setTimeout(MTrack.keepLoggedIn, 30000);
}
// forEach? - no IE support?
toWhat = toWhat || document.body; //
// run the main registry
- MTrack.registry.forEach(function(cfg) {
+ Roo.each(MTrack.registry, function(cfg) {
//Roo.log("Add select:" + cfg.selector);
try {
var el = Roo.get(toWhat).select(cfg.selector,true)
ajaxLoad : function(url,slideleft)
{
+ Roo.get(document.body).scrollTo('top',0,true);
this.currentURL = url;
var target = Roo.get("ajaxbody");
var content = Roo.get("content");
MTrack.missingHashes(target, url);
MTrack.addHandlers(target);
+ // scroll up...
+
},
'easeOut', 'motion'
);
last_wh : false,
footerPosition : function (force) {
+ return;
var ele = Roo.get('footer');
if (!force &&
(MTrack.last_dh != Roo.lib.Dom.getDocumentHeight() || MTrack.last_wh != Roo.lib.Dom.getViewHeight())) {
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 () {
- this.footerPosition();
- setTimeout(function () {
+ return;
+ /*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 + '/core_project',
params : { active_project_id : this.value },
success : function() {
// what if it's false..currentURL = false;
{separator:'---------------' },
{name:'Quotes', openWith:'(!(> |!|>)!)'},
{name:'Code', openWith:'{{{\\n', closeWith:'\\n}}}'},
- {separator:'---------------' },
+ {separator:'---------------' },1
{name:'Preview', call:'preview', className:'preview'}
]
});