js: also look for clickable row target in data-url attribute (#64844)

This commit is contained in:
Frédéric Péters 2022-05-04 13:40:26 +02:00
parent abb2903bb6
commit fdab8a9b6a
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ var gadjo_js = gadjo_js || {};
if (window.getSelection().toString()) {
return false;
}
var href = $(this).find('a[href]').prop('href');
var href = $(this).data('url') || $(this).find('a[href]').prop('href');
if (href) {
if (event.which == 2 || event.ctrlKey) {
window.open(href, '_blank');