mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
'Save PDF to inventory' uppercase word in the button & double modal [SCI-8496]
This commit is contained in:
parent
bfc4ebe237
commit
d43f10bc6a
2 changed files with 10 additions and 8 deletions
|
@ -317,15 +317,17 @@
|
|||
let url = row.attr('data-save-to-inventory-path');
|
||||
$.get(url, function(result) {
|
||||
let modal = $(result.html);
|
||||
$('#content-reports-index').append(modal);
|
||||
modal.modal('show');
|
||||
// Remove modal when it gets closed
|
||||
modal.on('hidden.bs.modal', function() {
|
||||
$(this).remove();
|
||||
});
|
||||
if ($('#content-reports-index').find('.modal').length === 0) {
|
||||
$('#content-reports-index').append(modal);
|
||||
modal.modal('show');
|
||||
// Remove modal when it gets closed
|
||||
modal.on('hidden.bs.modal', function() {
|
||||
$(this).remove();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function initDeleteReports() {
|
||||
$(document).on('click', '#delete-reports-btn', function() {
|
||||
|
|
|
@ -59,7 +59,7 @@ module Toolbars
|
|||
label: I18n.t('projects.reports.index.save_pdf_to_inventory'),
|
||||
icon: 'fas fa-save',
|
||||
button_id: 'savePdfToInventoryButton',
|
||||
type: 'remote-modal'
|
||||
path: save_pdf_to_inventory_modal_report_path(@report.id)
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue