Merge branch 'fix/artifacts-double-propagation' into 'master'

Fix double request issue in artifacts browser

This fixed problem with double propagation when clicking a link that lies inside tr with clicked event attached.

See merge request !2496
This commit is contained in:
Grzegorz Bizon 2016-01-19 12:48:35 +00:00
commit 425f8d6f57

View file

@ -23,6 +23,10 @@
.center Empty
:javascript
$(document).on('click', 'tr[data-link]', function(e) {
$('.tree-holder').on('click', 'tr[data-link] a', function(e) {
e.stopImmediatePropagation();
});
$('.tree-holder').on('click', 'tr[data-link]', function(e) {
window.location = this.dataset.link;
});