Skip to content

Commit

Permalink
Merge pull request #4220 from GordonSmith/HPCC-9113
Browse files Browse the repository at this point in the history
HPCC-9113 Running workunit not refreshing tabs

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
  • Loading branch information
richardkchapman committed Apr 10, 2013
2 parents ef541ac + 9329490 commit 8432242
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions esp/files/scripts/ESPWorkunit.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion esp/files/scripts/ResultsWidget.js
Expand Up @@ -131,7 +131,7 @@ define([
}
});
var currSel = context.getSelectedChild();
if (currSel) {
if (currSel && currSel.refresh) {
currSel.refresh();
}
}
Expand Down

0 comments on commit 8432242

Please sign in to comment.