Bug 41573: Tidy kohaTable - patron_lists/lists.tt

Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-08 14:15:09 +01:00 committed by Lucas Gass
parent 15ae4719fe
commit 49ff9c7199
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 7 additions and 2 deletions

View File

@ -162,6 +162,11 @@
[% MACRO jsinclude BLOCK %]
[% Asset.js("js/tools-menu.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
<script>
const interface = "[% interface | html %]";
const theme = "[% theme | html %]";
</script>
<script>
$(document).ready(function() {
var patronExportModal = $("#patronExportModal");
@ -211,13 +216,13 @@
});
patronExportModal.on("hidden.bs.modal", function(){
patronExportModalBody.html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
patronExportModalBody.html("<div id=\"loading\"><img src=\"" + interface + "/" + theme + "/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
});
patronExportModal.on("submit", "#exportingf", function(e){
e.preventDefault();
modal_body = patronExportModalBody;
modal_body.html("<div id=\"loading\"><img src=\"[% interface | html %]/[% theme | html %]/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
modal_body.html("<div id=\"loading\"><img src=\"" + interface + "/" + theme + "/img/spinner-small.gif\" alt=\"\" /> "+_("Loading")+"</div>");
target_url = $(this).attr("action");
params = $( this ).serialize();
$("#patronExportModal .modal-body").load( target_url + "?" + params + " #export_patron_list");