Commit a038d0e23442e7c30646aeefaab5c91d2abcda05
1 parent
bab90f22
Exists in
master
and in
111 other branches
redmine #5687
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
js/app/models/BkgJobNode.js
... | ... | @@ -42,7 +42,7 @@ Ext.define('amdaModel.BkgJobNode', { |
42 | 42 | } |
43 | 43 | }, |
44 | 44 | fields: [ |
45 | - // name, id, moduleId, object> from parent | |
45 | + // name, id, moduleId, object > from parent | |
46 | 46 | { name : 'jobType', type : 'string' }, |
47 | 47 | { name : 'processId', type : 'string' }, |
48 | 48 | { name : 'status', type : 'string' }, |
... | ... | @@ -70,7 +70,7 @@ Ext.define('amdaModel.BkgJobNode', { |
70 | 70 | break; |
71 | 71 | case amdaModel.BkgJobNode.STATUS_LIST.DONE: |
72 | 72 | // set status |
73 | - // this.set('status',amdaModel.BkgJobNode.STATUS_LIST.DONE); | |
73 | + // this.set('status',amdaModel.BkgJobNode.STATUS_LIST.DONE); | |
74 | 74 | this.set('iconCls','icon-done'); |
75 | 75 | break; |
76 | 76 | default : |
... | ... | @@ -79,6 +79,9 @@ Ext.define('amdaModel.BkgJobNode', { |
79 | 79 | this.set('iconCls','icon-pend'); |
80 | 80 | } |
81 | 81 | |
82 | + if (!this.get('processId') && this.get('id')) | |
83 | + this.set('processId', this.get('id')); | |
84 | + | |
82 | 85 | if (config) this.set('jobType', config.jobType); |
83 | 86 | else this.set('jobType',this.get('jobType')); |
84 | 87 | } |
... | ... | @@ -266,7 +269,6 @@ Ext.define('amdaModel.BkgJobNode', { |
266 | 269 | // Show Result |
267 | 270 | editNode : function(isNewTab, isInteractive) { |
268 | 271 | var me = this; |
269 | - | |
270 | 272 | if (isInteractive) { |
271 | 273 | myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interactive_plot.id, true, function(module) { |
272 | 274 | if (isNewTab) { |
... | ... |