From dd0ede1c8774c1f4294e1d1700d0ee093705d88a Mon Sep 17 00:00:00 2001 From: ajugo Date: Tue, 10 Jan 2023 11:08:30 +0100 Subject: [PATCH] Remove selected rows after task renaming in experiment table view [SCI-7647] (#4775) --- app/assets/javascripts/experiments/table.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/experiments/table.js b/app/assets/javascripts/experiments/table.js index c8d4a5836..3c5a6d7ec 100644 --- a/app/assets/javascripts/experiments/table.js +++ b/app/assets/javascripts/experiments/table.js @@ -196,6 +196,8 @@ var ExperimnetTable = { let id = $('#modal-edit-module').data('id'); let newValue = $('#edit-module-name-input').val(); + $(`.my-module-selector[data-my-module="${id}"]`).click(); + if (newValue === $(`#taskName${id}`).data('full-name')) { $('#modal-edit-module').modal('hide'); return false; @@ -445,6 +447,7 @@ var ExperimnetTable = { }, clearRowTaskSelection: function() { this.selectedMyModules = []; + $('.select-all-checkboxes .sci-checkbox').prop('checked', false); this.updateExperimentToolbar(); }, initNewTaskModal: function(table) {