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

build_artifacts.js.coffee « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5ae6cba56c8ee020e69da29806799b3b25569482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class @BuildArtifacts
  constructor: () ->
    @disablePropagation()
    @setupEntryClick()

  disablePropagation: ->
    $('.top-block').on 'click', '.download',  (e) ->
      e.stopPropagation()
    $('.tree-holder').on 'click', 'tr[data-link] a', (e) ->
      e.stopImmediatePropagation()

  setupEntryClick: ->
    $('.tree-holder').on 'click', 'tr[data-link]', (e) ->
      window.location = @dataset.link