Commit 28be66bf authored by Bas Lijnse's avatar Bas Lijnse

Added automatic refreshing of the task list when a task is done

git-svn-id: https://svn.cs.ru.nl/repos/iTask-system/branches/fancyTasks@298 63da3aa8-80fd-4f01-9db8-e6ea747a3da2
parent 8a847d8c
......@@ -88,6 +88,9 @@ itasks.ApplicationPanel = Ext.extend(Ext.Panel, {
var newtab = worktabs.openWorkTab(grid.getTaskId(row), grid.getTaskInfo(row));
newtab.setDebugPanel(debugpanel);
newtab.setApplicationPanel(apppanel);
newtab.on('taskdone',function(taskid) {
worklist.refresh();
},this);
newtab.refresh();
});
debugpanel.getTaskForestButton().on('click',function() {
......
......@@ -177,6 +177,7 @@ itasks.WorkTabPanel = Ext.extend(Ext.Panel, {
if (data.error != null) {
taskPanel.getEl().dom.innerHTML = this.makeErrorMessage(data.error);
} else if(data.done) { //Check if the task is done
this.fireEvent('taskdone', this.id);
taskPanel.getEl().dom.innerHTML = this.makeFinishedMessage();
} else {
//Update the tab content
......
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