summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/build_artifacts.js.coffee
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