]> 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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 30 Mar 2015 16:46:44 +0000 (13:46 -0300)
commit7fa67b2f83f418df0923caaeec444b6a8f728b21
treee4ef2db30da6889c88f310394df3fac4803de1eb
parent2a4a91aef3ecaacdf3d01dc358f9486b96fba705
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt