Bug 23601: Prevent default for auxclick
The issue appears to be that the default action is not prevented for middle click because it registers an 'auxclick' event as opposed to a 'click' event To test: 1 - Perform a search in staff client 2 - Shift-click and hold on a result 3 - Note a new tab opens 4 - Release the click, no change 5 - Middle click and hold on a result 6 - New tab opens 7 - Release, a second new tab opens 8 - Apply patch 9 - Reload page 10 - Middle click and hold 11 - New tab opens 12 - Release 13 - No new tab Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
25fa93a406
commit
2e1e9c5b48
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ KOHA.browser = function (searchid, biblionumber) {
|
|||
sessionStorage.setItem('searches', JSON.stringify(searches));
|
||||
$(document).ready(function () {
|
||||
//FIXME It's not a good idea to modify the click events
|
||||
$('#searchresults table tr a[href*="/detail.pl"]').on('click', function (ev) {
|
||||
$('#searchresults table tr a[href*="/detail.pl"]').on('click auxclick', function (ev) {
|
||||
ev.preventDefault();
|
||||
});
|
||||
$('#searchresults table tr a[href*="/detail.pl"]').on('mousedown', function (ev) {
|
||||
|
|
Loading…
Reference in a new issue