Commit 53871bb5bbf597a3efe257c5c511dac6d522660f
1 parent
3d9f783f
Exists in
master
and in
11 other branches
#11586 - Done.
Showing
3 changed files
with
19 additions
and
17 deletions
Show diff stats
js/app/controllers/ExplorerModule.js
... | ... | @@ -204,11 +204,9 @@ Ext.define('amdaDesktop.ExplorerModule', |
204 | 204 | |
205 | 205 | addLogMessage: function (message) { |
206 | 206 | var height, msg, panel, win |
207 | - height = 40 | |
208 | 207 | msg = Ext.create('Ext.Component', { |
209 | - height: height, | |
210 | - html: message, | |
211 | - style: {color: '#555555'} | |
208 | + html: '<div class="logMessage">'+message+'</div>', | |
209 | + style: {color: '#555555', marginLeft:'5px', marginBottom:'2px'} | |
212 | 210 | }) |
213 | 211 | win = myDesktopApp.getDesktop().getWindow(this.id) |
214 | 212 | panel = win.items.get('LogPanel') | ... | ... |
js/app/models/BkgJobNode.js
... | ... | @@ -174,19 +174,6 @@ Ext.define('amdaModel.BkgJobNode', { |
174 | 174 | |
175 | 175 | amdaDesktop.JobsMgr.updateStatus = null; |
176 | 176 | |
177 | - switch (this.get('jobType')) | |
178 | - { | |
179 | - case 'condition' : var type = 'Data Mining '; break; | |
180 | - case 'request' : var type = 'Plot '; break; | |
181 | - case 'download' : var type = 'Download '; break; | |
182 | - case 'statistic' : var type = 'Statistics '; break; | |
183 | - default: var type = 'unknown'; | |
184 | - } | |
185 | - | |
186 | - var message = Ext.Date.format(new Date(), 'd-m-Y H:i:s: ') + ': '+ type + ' '+this.get('text') + ' killed'; | |
187 | - myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.explorer.id, true, function (module) { | |
188 | - module.addLogMessage(message); | |
189 | - }); | |
190 | 177 | } |
191 | 178 | //delete fieldset from Result Module if it is open |
192 | 179 | else { | ... | ... |
js/app/models/InteractiveNode.js
... | ... | @@ -616,6 +616,23 @@ Ext.define('amdaModel.InteractiveNode', { |
616 | 616 | }); |
617 | 617 | } |
618 | 618 | } |
619 | + else{ | |
620 | + if(this.get('nodeType') == "bkgWorks"){ | |
621 | + switch (this.get('jobType')) | |
622 | + { | |
623 | + case 'condition' : var type = 'Data Mining '; break; | |
624 | + case 'request' : var type = 'Plot '; break; | |
625 | + case 'download' : var type = 'Download '; break; | |
626 | + case 'statistic' : var type = 'Statistics '; break; | |
627 | + default: var type = 'unknown'; | |
628 | + } | |
629 | + | |
630 | + var message = Ext.Date.format(new Date(res.time*1000), 'Y-m-d H:i:s: ') + type + ' '+this.get('text') + ' killed'; | |
631 | + myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.explorer.id, true, function (module) { | |
632 | + module.addLogMessage(message); | |
633 | + }); | |
634 | + } | |
635 | + } | |
619 | 636 | } |
620 | 637 | //update mask info in myData |
621 | 638 | if (res.maskDesc && !res.maskDeleted) { | ... | ... |