From 6ba72fb43b585ae2b2888dc3c50ada09014e86af 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 (cherry picked from commit a1f80ad2950ea100e34260be7ae7d6e7f6f3bea7) Signed-off-by: Lucas Gass --- .../prog/en/modules/circ/returns.tt | 55 +++++++++++++------ 1 file changed, 38 insertions(+), 17 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 901fe2e4bd..a3aa900bed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -139,7 +139,7 @@

@@ -166,9 +166,9 @@

@@ -254,11 +254,11 @@ - - @@ -291,9 +291,9 @@
- - - + + + [% FOREACH inputloo IN inputloop %] @@ -349,9 +349,9 @@ @@ -359,7 +359,6 @@ ->>>>>>> f3b362120f... Bug 21346: Convert dialogs to modals. [% END %] [% IF ( diffbranch ) %] @@ -475,19 +474,19 @@ - [% ELSE %] - [% END %] - @@ -617,12 +616,12 @@ [% IF ( return_date_override_remember ) %] - + [% ELSE %] - + [% END %] - + [% END %] [% FOREACH inputloo IN inputloop %] @@ -856,6 +855,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