|
@@ -138,7 +138,7 @@ define([
|
|
|
var context = this;
|
|
|
WsDfu.DFUArrayAction(this.workunitsGrid.getSelected(), this.i18n.Delete, {
|
|
|
load: function (response) {
|
|
|
- context.refreshGrid(response);
|
|
|
+ context.refreshGrid(true);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -212,7 +212,7 @@ define([
|
|
|
var formData = domForm.toObject(this.id + "AddToSuperfileForm");
|
|
|
WsDfu.AddtoSuperfile(this.workunitsGrid.getSelected(), formData.Superfile, formData.ExistingFile, {
|
|
|
load: function (response) {
|
|
|
- context.refreshGrid(response);
|
|
|
+ context.refreshGrid();
|
|
|
}
|
|
|
});
|
|
|
registry.byId(this.id + "AddtoDropDown").closeDropDown();
|
|
@@ -533,8 +533,11 @@ define([
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- refreshGrid: function (args) {
|
|
|
+ refreshGrid: function (clearSelection) {
|
|
|
this.workunitsGrid.set("query", this.getFilter());
|
|
|
+ if (clearSelection) {
|
|
|
+ this.workunitsGrid.clearSelection();
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
refreshActionState: function () {
|