|
@@ -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;
|