Browse Source

Merge pull request #5720 from GordonSmith/HPCC-11219

HPCC-11219 Bulk workunit delete leaves checkbox checked

Reviewed-By: Kevin Wang <kevin.wang@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 years ago
parent
commit
e0a991e049
1 changed files with 10 additions and 1 deletions
  1. 10 1
      esp/src/eclwatch/ESPUtil.js

+ 10 - 1
esp/src/eclwatch/ESPUtil.js

@@ -20,11 +20,12 @@ define([
     "dojo/i18n!./nls/hpcc",
     "dojo/_base/array",
     "dojo/Stateful",
+    "dojo/query",
     "dojo/json",
 
     "dijit/registry",
     "dijit/Tooltip"
-], function (declare, lang, i18n, nlsHPCC, arrayUtil, Stateful, json,
+], function (declare, lang, i18n, nlsHPCC, arrayUtil, Stateful, query, json,
     registry, Tooltip) {
 
     var SingletonData = declare([Stateful], {
@@ -182,6 +183,14 @@ define([
                 });
             },
 
+            clearSelection: function () {
+                this.inherited(arguments);
+                query("input[type=checkbox]", this.domNode).forEach(function (node) {
+                    node.checked = false;
+                    node.indeterminate = false;
+                });
+            },
+
             setSelection: function (arrayOfIDs) {
                 this.clearSelection();
                 var context = this;