0001-js-make-.clickable-rows-works-with-relative-href-612.patch
gadjo/static/js/gadjo.js | ||
---|---|---|
407 | 407 |
if ($target.is('input, button, a')) { |
408 | 408 |
return true; |
409 | 409 |
} |
410 |
var data_link = $(this).find('a[href]').attr('href'); |
|
411 |
if (data_link) { |
|
412 |
if (data_link.indexOf('http://') == -1 && data_link.indexOf('https://') == -1) { |
|
413 |
data_link = window.location.pathname + data_link; |
|
414 |
} |
|
410 |
var href = $(this).find('a[href]').prop('href'); |
|
411 |
if (href) { |
|
415 | 412 |
if (event.which == 2 || event.ctrlKey) { |
416 |
window.open(data_link, '_blank');
|
|
413 |
window.open(href, '_blank');
|
|
417 | 414 |
} else { |
418 |
window.location = data_link;
|
|
415 |
window.location = href;
|
|
419 | 416 |
} |
420 | 417 |
return false; |
421 |
}
|
|
418 |
} |
|
422 | 419 |
}); |
423 | 420 |
}); |
424 | 421 |
$(function() { |
425 |
- |