]> git.koha-community.org Git - koha.git/commit
Bug 9139: New subscription form - Does not check form on the first page
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 8 Apr 2015 14:21:15 +0000 (16:21 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 17 May 2015 22:53:04 +0000 (10:53 +1200)
commit7a5abcdcdd5e5e9ff1ecc29f40abf5618831ab87
tree882bf92b298375c8426f8c6f6f3de9a0d9ba2eb8
parent0eabbedfa8f61f84bbfa4fc3dffca62e9f7abae7
Bug 9139: New subscription form - Does not check form on the first page

The vendor and Record input try to sent the form if the focus is on the
inputs (normal behavior).
But the form is on 2 pages, and the popup message ask you to fill info
on the second page when you are on the first one. This does not make
sense.

This patch suggests to launch search when the enter key is press on
these inputs.

Test plan:
1/ Create a new subscription
2/ Put the focus in the Vendor input and press enter: the vendor search
popup should appear
3/ Put the focus in the Record input and press enter: the record search
popup should appear

Signed-off-by: Andreas Hedström Mace <andreas.hedstrom.mace@sub.su.se>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit b678c7359e2e7fe33d58d936f3227990911d43b6)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt