manager: don't manually handle clicks when parent is a link (#45726)

This commit is contained in:
Frédéric Péters 2020-08-04 10:42:51 +02:00
parent 392e0af5a5
commit 9a695869af
1 changed files with 2 additions and 2 deletions

View File

@ -173,8 +173,8 @@
});
$(document).on('click.manager', 'table tr[data-url][rel=popup]', displayPopup);
$(document).on('mouseup.manager', 'table tr[data-url]:not([rel=popup])', function (e) {
var $target = $(event.target);
if ($target.is('a')) return false;
var $target = $(e.target);
if ($target.is('a') || $target.parents('a').length) return false;
if (e.which == 2 || e.ctrlKey) {
window.open($(this).data('url'), '_blank');
} else {