summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/network.js.coffee
blob: f4ef07a50a7e10efbab544384eec31020d5f6922 (plain)
1
2
3
4
5
6
7
8
9
class @Network
  constructor: (opts) ->
    $("#filter_ref").click ->
      $(this).closest('form').submit()

    @branch_graph = new BranchGraph($(".network-graph"), opts)

    vph = $(window).height() - 250
    $('.network-graph').css 'height': (vph + 'px')