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');
$.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() {