From a1f80ad2950ea100e34260be7ae7d6e7f6f3bea7 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 (cherry picked from commit d5d4501290704b9b3a0893a4a3df0a356abe445b) Signed-off-by: Martin Renvoize --- .../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 632be38bba..294fcb85af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -191,7 +191,7 @@

@@ -218,9 +218,9 @@

@@ -306,11 +306,11 @@ - - @@ -345,7 +345,7 @@ - + [% FOREACH inputloo IN inputloop %] @@ -401,9 +401,9 @@ @@ -526,19 +526,19 @@ - [% ELSE %] - [% END %] - @@ -668,12 +668,12 @@ [% IF ( return_date_override_remember ) %] - + [% ELSE %] - + [% END %] - + [% END %] [% FOREACH inputloo IN inputloop %] @@ -912,6 +912,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