From dd48a2902d91c596871bf5e1b0ff3bb8b3b85219 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Wed, 15 Jan 2020 12:44:57 +0100 Subject: [PATCH] Disable repository filtering in edit mode [SCI-4226] --- app/assets/javascripts/repositories/repository_datatable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/repositories/repository_datatable.js b/app/assets/javascripts/repositories/repository_datatable.js index c1b399e85..70ba91214 100644 --- a/app/assets/javascripts/repositories/repository_datatable.js +++ b/app/assets/javascripts/repositories/repository_datatable.js @@ -57,6 +57,7 @@ var RepositoryDatatable = (function(global) { $('#repository-columns-dropdown').find('.dropdown-toggle').prop('disabled', false); $('th').removeClass('disable-click'); $('.repository-row-selector').prop('disabled', false); + $('.dataTables_filter input').prop('disabled', false); if (rowsSelected.length === 0) { $('#exportRepositoriesButton').addClass('disabled'); $('#copyRepositoryRecords').prop('disabled', true); @@ -90,6 +91,7 @@ var RepositoryDatatable = (function(global) { $('#repository-columns-dropdown').find('.dropdown-toggle').prop('disabled', true); $('th').addClass('disable-click'); $('.repository-row-selector').prop('disabled', true); + $('.dataTables_filter input').prop('disabled', true); } }