Do not use progress bar when downloading build artifacts

Closes #12491
This commit is contained in:
Grzegorz Bizon 2016-01-21 15:05:51 +01:00
parent a4ff270d59
commit e5232ccc1e

View file

@ -4,7 +4,7 @@
.top-block.gray-content-block.clearfix .top-block.gray-content-block.clearfix
.pull-right .pull-right
= link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build), = 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') = icon('download')
Download artifacts archive Download artifacts archive
@ -22,6 +22,10 @@
.center Empty .center Empty
:javascript :javascript
$('.top-block').on('click', '.download', function(e) {
e.stopPropagation();
});
$('.tree-holder').on('click', 'tr[data-link] a', function(e) { $('.tree-holder').on('click', 'tr[data-link] a', function(e) {
e.stopImmediatePropagation(); e.stopImmediatePropagation();
}); });