Bug 41568: Tidy kohaTable - circ/branchtransfers.tt - fix conflict with 41134

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-03-12 11:33:03 +01:00 committed by Lucas Gass
parent 897c8c7944
commit 024d9a18ba
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 10 additions and 7 deletions

View File

@ -303,16 +303,19 @@
[% INCLUDE 'select2.inc' %]
<script>
var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'transfers', 'transferstable', 'json' ) | $raw %]
$(document).ready( function() {
$(".printtransferslip").on("click", function(e){
var found = [% found ? 1 : 0 | html %];
</script>
<script>
$(document).ready(function () {
$(".printtransferslip").on("click", function (e) {
e.preventDefault();
var itemnumber = $(this).attr('data-itemnumber');
var to_branch = $(this).attr('data-tobranch');
var itemnumber = $(this).attr("data-itemnumber");
var to_branch = $(this).attr("data-tobranch");
window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
});
[% IF ( found ) %]
$("#transfer_confirm").modal('show');
[% END %]
if (found) {
$("#transfer_confirm").modal("show");
}
var transfers_table = $("#transferstable").kohaTable(
{
searching: false,