Bugzilla – Attachment 12689 Details for
Bug 8557
in orderreceive.tt and serials-edit.tt the use of a barcode scan send the form unexpectedly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug-8557-Prevents-form-validation-by-pressing-Enter.patch
0001-Bug-8557-Prevents-form-validation-by-pressing-Enter.patch (text/plain), 2.43 KB, created by
Frédéric Demians
on 2012-10-04 17:00:41 UTC
(
hide
)
Description:
Bug-8557-Prevents-form-validation-by-pressing-Enter.patch
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2012-10-04 17:00:41 UTC
Size:
2.43 KB
patch
obsolete
>From 0b7a6af9bc0206ca28269a3f24f4b3e184511bba Mon Sep 17 00:00:00 2001 >From: Christophe Croullebois <christophe.croullebois@biblibre.com> >Date: Thu, 20 Sep 2012 16:06:29 +0200 >Subject: [PATCH] Bug 8557: Prevents form validation by pressing "Enter" > >this patch prevents a scan machine to send 'enter' to the form when it is not expected. >The patch is on orderreceive.tt and serials-edit.tt. >Written by Alex Arnaud. MT6626. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 3 ++- > koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt | 7 +++++-- > 2 files changed, 7 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >index c6559c3..79811bd 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt >@@ -322,7 +322,8 @@ > > </div> > </div><div class="yui-g"><fieldset class="action"> >- <input type="submit" value="Save" /> >+ <input type="submit" onclick="return false;" style="display: none;" id="phony_submit" value="phony_submit" name="phony_submit" /> >+ <input type="submit" value="Save" class="button" accesskey="w" /> > <a class="cancel" href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% invoiceid %]">Cancel</a> > </fieldset></div> </form> > [% ELSE %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >index a6fd962..d6787e6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-edit.tt >@@ -428,8 +428,11 @@ $(document).ready(function() { > [% END %] > > </table> >- <fieldset class="action"><input type="submit" value="Save" class="button" accesskey="w" /> >- [% UNLESS ( serialsadditems ) %] <input type="button" onclick="javascript:generateReceive()" value="Multi receiving">[% END %] >+ <fieldset class="action"> >+ <input type="submit" onclick="return false;" style="display: none;" id="phony_submit" value="phony_submit" name="phony_submit" /> >+ <input type="submit" value="Save" class="button" accesskey="w" /> >+ [% UNLESS ( serialsadditems ) %] <input type="button" onclick="javascript:generateReceive()" value="Multi receiving">[% END %] >+ </fieldset> > </form> > > </div> >-- >1.7.11.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 8557
:
12392
|
12393
|
12689
|
12702
|
13167
|
13247
|
13660
|
13749
|
13750
|
14019
|
14325
|
14556