1
0
Fork 0

clickable-row do not override links

merge-requests/485/head
Alejandro A 2018-04-11 14:59:58 +02:00 committed by Alejandro Agustin
parent 675ff1b894
commit 713f1c3497
1 changed files with 8 additions and 6 deletions

View File

@ -10,12 +10,14 @@ $(document).ready(function() {
// Make table rows clickable
$('.clickable-row').click(function(e) {
var href = $(this).find('a').attr('href');
e.preventDefault();
if (e.ctrlKey) {
window.open(href, '_blank');
} else {
window.location = href;
if (e.target.nodeName != 'A') {
var href = $(this).find('a').attr('href');
e.preventDefault();
if (e.ctrlKey) {
window.open(href, '_blank');
} else {
window.location = href;
}
}
});
});