summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-19 12:00:38 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-19 13:32:28 +0100
commit19608d3ee027efb27ecf83671a85487040287619 (patch)
tree8933f5eb82eee7c103af37cfe1cd223ecf50972e /app/views
parent2becc6fae9b82479b644c0ca10b758cf8447bc19 (diff)
downloadgitlab-ce-19608d3ee027efb27ecf83671a85487040287619.tar.gz
Fix double request issue in artifacts browser
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/artifacts/browse.html.haml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/artifacts/browse.html.haml b/app/views/projects/artifacts/browse.html.haml
index 9dc7b2c2e1f..b70c776a2b2 100644
--- a/app/views/projects/artifacts/browse.html.haml
+++ b/app/views/projects/artifacts/browse.html.haml
@@ -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;
});