From 017781d0dcf544b3e5fdb298263b746f84c7a46d Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Mon, 29 May 2023 13:25:54 +0400 Subject: [PATCH] cleanup --- app/assets/javascripts/reports/reports_datatable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/reports/reports_datatable.js b/app/assets/javascripts/reports/reports_datatable.js index c763c43b2..3f42d967d 100644 --- a/app/assets/javascripts/reports/reports_datatable.js +++ b/app/assets/javascripts/reports/reports_datatable.js @@ -317,7 +317,7 @@ let url = row.attr('data-save-to-inventory-path'); $.get(url, function(result) { let modal = $(result.html); - if ($('#content-reports-index').find('.modal').length === 0) { + if ($('#content-reports-index').find('#savePDFtoInventory').length === 0) { $('#content-reports-index').append(modal); modal.modal('show'); // Remove modal when it gets closed @@ -327,7 +327,7 @@ } }); }); - } + } function initDeleteReports() { $(document).on('click', '#delete-reports-btn', function() {