Sha256: b4890f3db1fd7344ddde9cab9cd90a1ea8e373cd2f541c2281f1b2531e831cce

Contents?: true

Size: 575 Bytes

Versions: 2

Compression:

Stored size: 575 Bytes

Contents

$(document).on 'ready', ->
  $('.filter .state-toggle').on 'change', ->
    active_states = $('.filter :checked')
    param_string = "?"
    active_states.each (_, state) ->
      param_string += "states[]=" + $(state).attr('id') + "&"
    window.location.href = window.location.href.replace( /[\?#].*|$/, param_string );

  if $('#properties').length
    $('#expand').on 'click', ->
      $(this).hide()
      $('#collapse').show()
      $('#properties').show()
    $('#collapse').on 'click', ->
      $(this).hide()
      $('#expand').show()
      $('#properties').hide()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rocketjob_mission_control-1.2.1 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js.coffee
rocketjob_mission_control-1.2.0 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js.coffee