From db16dc68ace45fb521fc1a26441b0a922b304787 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. --- .../intranet-tmpl/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 7ea380a1e8..64b560a1ee 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.11.0