From 5d6cb786fd5c514d85bfeedf9922b59c531fc04e Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 14 Sep 2011 09:14:15 +0200 Subject: [PATCH] refresh task output when task is running --- www/manager/window/TaskViewer.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/www/manager/window/TaskViewer.js b/www/manager/window/TaskViewer.js index c9cf350be..a94da3a37 100644 --- a/www/manager/window/TaskViewer.js +++ b/www/manager/window/TaskViewer.js @@ -75,6 +75,9 @@ Ext.define('PVE.window.TaskViewer', { method: 'DELETE', failure: function(response, opts) { Ext.Msg.alert('Error', response.htmlStatus); + }, + callback: function() { + store.load(); } }); }; @@ -105,6 +108,9 @@ Ext.define('PVE.window.TaskViewer', { if (status === 'stopped') { statstore.stopUpdate(); } + if (status === 'running') { + store.load(); + } stop_btn1.setDisabled(status !== 'running'); stop_btn2.setDisabled(status !== 'running'); @@ -131,12 +137,11 @@ Ext.define('PVE.window.TaskViewer', { features: [ {ftype: 'selectable'}], store: store, stateful: false, - //tbar: [ 'test' ], verticalScrollerType: 'paginggridscroller', - loadMask: true, disableSelection: true, invalidateScrollerOnRefresh: false, viewConfig: { + loadMask: false, trackOver: false, stripeRows: false },