浏览代码

Merge pull request #4220 from GordonSmith/HPCC-9113

HPCC-9113 Running workunit not refreshing tabs

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 12 年之前
父节点
当前提交
8432242165
共有 2 个文件被更改,包括 5 次插入6 次删除
  1. 4 5
      esp/files/scripts/ESPWorkunit.js
  2. 1 1
      esp/files/scripts/ResultsWidget.js

+ 4 - 5
esp/files/scripts/ESPWorkunit.js

@@ -186,11 +186,10 @@ define([
             return this.hasCompleted;
         },
         monitor: function (callback) {
-            if (this.hasCompleted) {
-                if (callback) {
-                    callback(this);
-                }
-            } else {
+            if (callback) {
+                callback(this);
+            }
+            if (!this.hasCompleted) {
                 var context = this;
                 this.watch("changedCount", function (name, oldValue, newValue) {
                     if (oldValue !== newValue && newValue) {

+ 1 - 1
esp/files/scripts/ResultsWidget.js

@@ -131,7 +131,7 @@ define([
                             }
                         });
                         var currSel = context.getSelectedChild();
-                        if (currSel) {
+                        if (currSel && currSel.refresh) {
                             currSel.refresh();
                         }
                     }