]> git.koha-community.org Git - koha.git/commit
Bug 23601: Prevent default for auxclick
authorNick Clemens <nick@bywatersolutions.com>
Mon, 30 Mar 2020 15:16:36 +0000 (15:16 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Wed, 29 Apr 2020 17:56:43 +0000 (17:56 +0000)
commit9f89eabcd5befe34d4b3ad75fb8b128f4de131f3
tree6bd8601c7ac3d23ddd8dc8b08a519ad1c854c4c6
parent300dbea81219245614d95599c7cd98c51a005242
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>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
koha-tmpl/intranet-tmpl/js/browser.js