Bugzilla – Attachment 3941 Details for
Bug 4389
Trigger quick slip print on empty checkout submit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch [tt]
0001-Bug-4389-tt-Trigger-quick-slip-print-on-empty-checko.patch (text/plain), 1.64 KB, created by
Tomás Cohen Arazi (tcohen)
on 2011-04-18 13:20:11 UTC
(
hide
)
Description:
Proposed patch [tt]
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2011-04-18 13:20:11 UTC
Size:
1.64 KB
patch
obsolete
>From 85d818d5dcca15ec3f14d239cda44fa6f3d5233e Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Mon, 18 Apr 2011 10:17:02 -0300 >Subject: [PATCH] Bug 4389 - [tt] Trigger quick slip print on empty checkout submit >Content-Type: text/plain; charset="utf-8" > >js listener approach. Added a reasonable id to the mainform. >To+ >--- > .../prog/en/modules/circ/circulation.tt | 8 +++++++- > 1 files changed, 7 insertions(+), 1 deletions(-) > >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 e63d289..99ae8a4 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 <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'" /> >-- >1.7.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4389
:
3274
|
3757
| 3941 |
3942