BigW Consortium Gitlab

build_artifacts.js.coffee 411 Bytes
Newer Older
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