From d5d4501290704b9b3a0893a4a3df0a356abe445b Mon Sep 17 00:00:00 2001 From: Christopher Brannon Date: Wed, 5 Dec 2018 20:33:25 +0000 Subject: [PATCH] Bug 21346: Remove inline onclicks per comment 42 To test: 1) Apply patch. 2) Check that there is no changed behavior with buttons or checkboxes. Signed-off-by: Liz Rea Signed-off-by: Kyle M Hall Signed-off-by: Nick Clemens --- .../prog/en/modules/circ/returns.tt | 50 +++++++++++++------ 1 file changed, 36 insertions(+), 14 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 cf87c320fd..7f80f6ee51 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -195,7 +195,7 @@

@@ -222,9 +222,9 @@

@@ -310,11 +310,11 @@ - - @@ -349,7 +349,7 @@ - + [% FOREACH inputloo IN inputloop %] @@ -405,9 +405,9 @@ @@ -530,19 +530,19 @@ - [% ELSE %] - [% END %] - @@ -672,12 +672,12 @@ [% IF ( return_date_override_remember ) %] - + [% ELSE %] - + [% END %] - + [% END %] [% FOREACH inputloo IN inputloop %] @@ -920,6 +920,28 @@ $('.openWin').on("click",function(e){ Dopop( $(this).data("url") ); }); + + $('.print').on("click",function(e){ + this.form.print_slip.value = 1; + this.form.submit(); + }); + + $('.cancel-hold').on("click",function(e){ + this.form.cancel_reserve.value = 1; + this.form.submit(); + }); + + $('.cancel-transfer').on("click",function(e){ + window.location.href='/cgi-bin/koha/circ/returns.pl?itemnumber=[% itemnumber | html %]&canceltransfer=1' + }); + + $('.action').on("click",function(e){ + this.checked = false; + this.form.return_date_override.value = ''; + this.form.return_date_override_remember.checked = false; + this.form.barcode.focus(); + return false; + }); }); [% END %] -- 2.39.5