From e511f2cc16d4c9b0c78724a7033ab17872b03f54 Mon Sep 17 00:00:00 2001 From: elena Date: Wed, 23 Sep 2015 11:49:31 +0200 Subject: [PATCH] stat node --- js/app/models/BkgJobNode.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/js/app/models/BkgJobNode.js b/js/app/models/BkgJobNode.js index f0e36b7..b365dbf 100644 --- a/js/app/models/BkgJobNode.js +++ b/js/app/models/BkgJobNode.js @@ -170,18 +170,20 @@ Ext.define('amdaModel.BkgJobNode', { Ext.TaskManager.stop(amdaDesktop.JobsMgr.updateStatus); amdaDesktop.JobsMgr.updateStatus = null; - switch (this.get('jobType')) { - case 'condition' : var type = 'Data Mining '; break; - case 'request' : var type = 'Plot '; break; - case 'download' : var type = 'Download '; break; - default: var type = 'unknown'; - } + switch (this.get('jobType')) { + case 'condition' : var type = 'Data Mining '; break; + case 'request' : var type = 'Plot '; break; + case 'download' : var type = 'Download '; break; + case 'statistics' : var type = 'Statistics '; break; + default: var type = 'unknown'; + } + var message = Ext.Date.format(new Date(), 'd-m-Y H:i:s: ') + ': '+ type + ' '+this.get('text') + ' killed'; myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.explorer.id, true, function (module) { module.addLogMessage(message); }); } -//delete fieldset from Result Module if it is open + //delete fieldset from Result Module if it is open else { var me = this; myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.result.id, true, function (module) { -- libgit2 0.21.2