Bugzilla – Attachment 12393 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]
proposed patch
0001-Bug-8557-Prevents-form-validation-by-pressing-Enter.patch (text/plain), 2.13 KB, created by
Christophe Croullebois
on 2012-09-20 14:13:17 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Christophe Croullebois
Created:
2012-09-20 14:13:17 UTC
Size:
2.13 KB
patch
obsolete
>From bcced540289979ad3b427acf604e9f4ced605167 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 1/1] 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. >--- > .../prog/en/modules/acqui/orderreceive.tt | 3 ++- > .../prog/en/modules/serials/serials-edit.tt | 5 ++++- > 2 files changed, 6 insertions(+), 2 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 612b5bc..e12a2a0 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 79ce099..ca62ad6 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 >@@ -422,7 +422,10 @@ $(document).ready(function() { > [% END %] > > </table> >- <fieldset class="action"><input type="submit" value="Save" class="button" accesskey="w" /> >+ <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" /> >+ </fieldset> > </form> > > </div> >-- >1.7.9.5 >
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