BigW Consortium Gitlab

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