diff --git a/app/views/projects/artifacts/browse.html.haml b/app/views/projects/artifacts/browse.html.haml index d3c969cc035..8a6fb785708 100644 --- a/app/views/projects/artifacts/browse.html.haml +++ b/app/views/projects/artifacts/browse.html.haml @@ -4,7 +4,7 @@ .top-block.gray-content-block.clearfix .pull-right = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build), - class: 'btn btn-default' do + class: 'btn btn-default download' do = icon('download') Download artifacts archive @@ -22,6 +22,10 @@ .center Empty :javascript + $('.top-block').on('click', '.download', function(e) { + e.stopPropagation(); + }); + $('.tree-holder').on('click', 'tr[data-link] a', function(e) { e.stopImmediatePropagation(); });