diff --git a/Resources/js/itasks.DebugPanel.js b/Resources/js/itasks.DebugPanel.js index 31736e5c978d6028947a82a2b31c74032cc13144..7267545c7b61f5c6338c7c03e49c5ff8a16ea493 100644 --- a/Resources/js/itasks.DebugPanel.js +++ b/Resources/js/itasks.DebugPanel.js @@ -25,15 +25,15 @@ itasks.DebugPanel = Ext.extend(Ext.Panel, { style: 'margin-bottom: 2px;' },{ xtype: 'button', - text: 'Show thread table...', + text: 'Show process table...', cls: 'debug-button', - iconCls: 'icon-thread-table', + iconCls: 'icon-process-table', style: 'margin-bottom: 2px;' },{ xtype: 'button', - text: 'Show process table...', + text: 'Show thread table...', cls: 'debug-button', - iconCls: 'icon-process-table' + iconCls: 'icon-thread-table' }] },{ id: 'options', @@ -58,12 +58,12 @@ itasks.DebugPanel = Ext.extend(Ext.Panel, { getTaskForestButton: function() { return this.getComponent(0).getComponent(0); }, - getThreadTableButton: function() { + getProcessTableButton: function() { return this.getComponent(0).getComponent(1); }, - getProcessTableButton: function() { + getThreadTableButton: function() { return this.getComponent(0).getComponent(2); - } + } }); Ext.reg('itasks.debug',itasks.DebugPanel); \ No newline at end of file diff --git a/Resources/js/itasks.ProcessTableTabPanel.js b/Resources/js/itasks.ProcessTableTabPanel.js index 5d9ab15bf496372082e32cb4d33332919f9c173d..499cdc97c08147636a130f1a2d1235465a218d0b 100644 --- a/Resources/js/itasks.ProcessTableTabPanel.js +++ b/Resources/js/itasks.ProcessTableTabPanel.js @@ -13,7 +13,19 @@ itasks.ProcessTableTabPanel = Ext.extend(Ext.Panel, { title: 'Process table', closable: true, autoScroll: true, - cls: 'worktab-container' + cls: 'worktab-container', + tbar: [{ + text: 'Refresh', + iconCls: 'x-tbar-loading', + listeners: { + click: { + scope: this, + fn: function (btn) { + this.refresh(); + } + } + } + }] }); itasks.ProcessTableTabPanel.superclass.initComponent.apply(this, arguments); diff --git a/Resources/js/itasks.TaskForestTabPanel.js b/Resources/js/itasks.TaskForestTabPanel.js index 9accebac9482d375c55cee76dd05737f71438fe0..f65d5e5fa0bacaddbd2680989c42340788ec12f6 100644 --- a/Resources/js/itasks.TaskForestTabPanel.js +++ b/Resources/js/itasks.TaskForestTabPanel.js @@ -13,7 +13,19 @@ itasks.TaskForestTabPanel = Ext.extend(Ext.Panel, { title: 'Task forest', closable: true, autoScroll: true, - cls: 'worktab-container' + cls: 'worktab-container', + tbar: [{ + text: 'Refresh', + iconCls: 'x-tbar-loading', + listeners: { + click: { + scope: this, + fn: function (btn) { + this.refresh(); + } + } + } + }] }); itasks.TaskForestTabPanel.superclass.initComponent.apply(this, arguments); diff --git a/Resources/js/itasks.ThreadTableTabPanel.js b/Resources/js/itasks.ThreadTableTabPanel.js index 207f529ad0dd1a77eccd6771949d94233b756712..e97bf661d4bca249cb437cbb567dc30c9d1b4550 100644 --- a/Resources/js/itasks.ThreadTableTabPanel.js +++ b/Resources/js/itasks.ThreadTableTabPanel.js @@ -13,7 +13,19 @@ itasks.ThreadTableTabPanel = Ext.extend(Ext.Panel, { title: 'Thread table', closable: true, autoScroll: true, - cls: 'worktab-container' + cls: 'worktab-container', + tbar: [{ + text: 'Refresh', + iconCls: 'x-tbar-loading', + listeners: { + click: { + scope: this, + fn: function (btn) { + this.refresh(); + } + } + } + }] }); itasks.ThreadTableTabPanel.superclass.initComponent.apply(this, arguments); diff --git a/Resources/js/itasks.WorkTabPanel.js b/Resources/js/itasks.WorkTabPanel.js index 9b8a62b8812e0eacdad3bf23920b0b6cb2bb71b3..cd848a9ea6cb36200d201b9fd6184eea4f7cc23e 100644 --- a/Resources/js/itasks.WorkTabPanel.js +++ b/Resources/js/itasks.WorkTabPanel.js @@ -247,6 +247,7 @@ itasks.WorkTabPanel = Ext.extend(Ext.Panel, { break; case "Bool": case "Maybe": + case "HtmlCheckbox": var checked = input.dom.checked; var parent = input.parent(); var next = input.next();