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 3ed2236293
commit dea0b0552d
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,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');