From e15fd8ce57e33e525945e68a049bbf60335497eb Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 17 May 2021 10:42:04 +0100 Subject: [PATCH] Bug 24434: Submit on print slip This patch ensures that the print slip option on the WrongTransfer modal also submits the form and thus triggers the actual transfer of the item. We also prevent a double transfer submission (and thus a cancellation line appearing in the branchtransfers table) for the case where a transfer back home is triggered. --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 668e67db58..e901bdc7dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -459,7 +459,7 @@ - + @@ -606,7 +606,7 @@ [% ELSE %] - + [% END %] @@ -1127,6 +1127,10 @@ $('.openWin').on("click",function(e){ Dopop( $(this).data("url") ); }); + + $('.submit').on("click",function(e){ + this.form.submit(); + }); $('.cancel').on("click",function(e){ var docancel = $("").attr("type", "hidden").attr("name", "canceltransfer").val(1); -- 2.20.1