diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-19 12:00:38 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-19 13:32:28 +0100 |
commit | 19608d3ee027efb27ecf83671a85487040287619 (patch) | |
tree | 8933f5eb82eee7c103af37cfe1cd223ecf50972e /app/views | |
parent | 2becc6fae9b82479b644c0ca10b758cf8447bc19 (diff) | |
download | gitlab-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.haml | 6 |
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; }); |