Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-19 14:00:38 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-19 15:32:28 +0300
commit19608d3ee027efb27ecf83671a85487040287619 (patch)
tree8933f5eb82eee7c103af37cfe1cd223ecf50972e /app/views/projects/artifacts
parent2becc6fae9b82479b644c0ca10b758cf8447bc19 (diff)
Fix double request issue in artifacts browser
Diffstat (limited to 'app/views/projects/artifacts')
-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;
});