From 63df8b42fe2332da40ae819b67b2585b25d1a5c9 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Sun, 17 Apr 2011 19:27:37 -0400 Subject: [PATCH] Bug 4389 - [tt] Trigger quick slip print on empty checkout submit js listener approach. Added a reasonable id to the mainform. To+ Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- .../intranet-tmpl/prog/en/modules/circ/circulation.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index e63d289beb..99ae8a4c0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -51,6 +51,12 @@ if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path } } ).attr( 'checked', false ); [% END %] + // listen submit to trigger qslip on empty checkout + $('#mainform').bind('submit',function() { + if ($('#barcode').val() == '') { + return printx_window('qslip'); } + }); + var allcheckboxes = $(".checkboxed"); $("#renew_all").click(function(){ @@ -441,7 +447,7 @@ No patron matched [% message %] [% END %] -
+
[% IF ( DisplayClearScreenButton ) %] -- 2.39.5