Commit 4eb5eeb5 authored by Bas Lijnse's avatar Bas Lijnse

Added session checking to the debug overviews (and fixed the icon of the login help button)

git-svn-id: https://svn.cs.ru.nl/repos/iTask-system/branches/fancyTasks@300 63da3aa8-80fd-4f01-9db8-e6ea747a3da2
parent b33a75ff
......@@ -99,6 +99,7 @@ itasks.LoginWindow = Ext.extend(Ext.Window, {
}]
},
tools: [{
id: 'help',
handler: this.showHelp,
scope: this
}]
......
......@@ -21,8 +21,21 @@ itasks.ProcessTableTabPanel = Ext.extend(Ext.Panel, {
setApplicationPanel: function(panel) {
this.applicationPanel = panel;
},
processResponse: function (el, success, response, options) {
if(response.responseText.substr(0,4) == '<div') {
this.body.dom.innerHTML = response.responseText;
} else {
this.applicationPanel.checkSessionResponse(Ext.decode(response.responseText));
}
},
refresh: function() {
this.load({method: 'GET', url: 'handlers/processtable?session=' + this.applicationPanel.getSessionId()});
Ext.Ajax.request({
method: 'GET',
url: 'handlers/processtable',
params: this.applicationPanel.addSessionParam({}),
callback: this.processResponse,
scope: this
});
}
});
......
......@@ -22,12 +22,14 @@ itasks.TaskForestTabPanel = Ext.extend(Ext.Panel, {
this.applicationPanel = panel;
},
processResponse: function (el, success, response, options) {
if(response.responseText.substr(0,4) != '<div') {
if(response.responseText.substr(0,4) == '<div') {
this.body.dom.innerHTML = response.responseText;
} else {
this.applicationPanel.checkSessionResponse(Ext.decode(response.responseText));
}
},
refresh: function() {
this.load({
Ext.Ajax.request({
method: 'GET',
url: 'handlers/tasktreeforest',
params: this.applicationPanel.addSessionParam({}),
......
......@@ -21,8 +21,21 @@ itasks.ThreadTableTabPanel = Ext.extend(Ext.Panel, {
setApplicationPanel: function(panel) {
this.applicationPanel = panel;
},
processResponse: function (el, success, response, options) {
if(response.responseText.substr(0,4) == '<div') {
this.body.dom.innerHTML = response.responseText;
} else {
this.applicationPanel.checkSessionResponse(Ext.decode(response.responseText));
}
},
refresh: function() {
this.load({method: 'GET', url: 'handlers/threadtable?session=' + this.applicationPanel.getSessionId()});
Ext.Ajax.request({
method: 'GET',
url: 'handlers/threadtable',
params: this.applicationPanel.addSessionParam({}),
callback: this.processResponse,
scope: this
});
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment