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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 14 May 2015 14:42:35 +0000 (11:42 -0300)
commitb678c7359e2e7fe33d58d936f3227990911d43b6
tree2eec7ee7168942eb7464db9e9c6e56845e2d384d
parent1d403fa465ca998c820f3de2cc162a7b6ba65351
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>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt