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

build_artifacts.js « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ed9ad3c6c57726fe4860ec10aed3ac5aec8b95dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, no-return-assign, max-len */

function BuildArtifacts() {
  this.disablePropagation();
  this.setupEntryClick();
}

BuildArtifacts.prototype.disablePropagation = function() {
  $('.top-block').on('click', '.download', function(e) {
    return e.stopPropagation();
  });
  return $('.tree-holder').on('click', 'tr[data-link] a', function(e) {
    return e.stopImmediatePropagation();
  });
};

BuildArtifacts.prototype.setupEntryClick = function() {
  return $('.tree-holder').on('click', 'tr[data-link]', function(e) {
    return window.location = this.dataset.link;
  });
};

window.BuildArtifacts = BuildArtifacts;