This commit is contained in:
Giga Chubinidze 2023-05-29 13:25:54 +04:00
parent d43f10bc6a
commit 017781d0dc

View file

@ -317,7 +317,7 @@
let url = row.attr('data-save-to-inventory-path'); let url = row.attr('data-save-to-inventory-path');
$.get(url, function(result) { $.get(url, function(result) {
let modal = $(result.html); 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); $('#content-reports-index').append(modal);
modal.modal('show'); modal.modal('show');
// Remove modal when it gets closed // Remove modal when it gets closed
@ -327,7 +327,7 @@
} }
}); });
}); });
} }
function initDeleteReports() { function initDeleteReports() {
$(document).on('click', '#delete-reports-btn', function() { $(document).on('click', '#delete-reports-btn', function() {