]> git.koha-community.org Git - koha.git/commit
Bug 9120: Prevent form submission on adding tags - OPAC
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 18 Mar 2015 16:21:42 +0000 (17:21 +0100)
committerChris Cormack <chris@bigballofwax.co.nz>
Tue, 31 Mar 2015 05:44:10 +0000 (18:44 +1300)
commitfce19045ac1a2afd92080d4784117916515faaee
tree19e7ffe1857e60ad1dacee9a5361997cdf8ad6a3
parent624827782d9f3046b222da0118225c0654a36e99
Bug 9120: Prevent form submission on adding tags - OPAC

At the OPAC, if the user adds tags pressing 'Enter', the page is
reloaded and the tags are not added.
To prevent that, this patch suggests to block the "press enter" event on
the inputs.

Test plan:
0/ Confirm the bad behavior, without this patch.
1/ Apply this patch and confirm nothing happen on pressing enter when
the focus is on the add tag input (At the opac, on the result view).

Patch works as expected.
Signed-off-by: Marc Veron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 7fa67b2f83f418df0923caaeec444b6a8f728b21)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt