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 <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Tomás Cohen Arazi 2011-04-17 19:27:37 -04:00 committed by Chris Cormack
parent 1efda7ceb4
commit 63df8b42fe

View file

@ -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 <span class="ex">[% message %]</span>
[% END %]
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" name="mainform">
<form method="post" action="/cgi-bin/koha/circ/circulation.pl" id="mainform" name="mainform">
<fieldset id="circ_circulation_issue">
[% IF ( DisplayClearScreenButton ) %]
<input type="button" value="Clear Screen" onclick="window.location = '/cgi-bin/koha/circ/circulation.pl'" />