Sha256: 706eea07736c7e72844023b4fa92322009e58c2ce6e0913d9965222059b10e59

Contents?: true

Size: 717 Bytes

Versions: 8

Compression:

Stored size: 717 Bytes

Contents

'use strict';

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

  if ($('#properties').length) {
    return $('#properties').on('click', function () {
      var params          = $('#new_rocket_job_dirmon_entry').serialize();
      var new_dirmon_path = $('#properties').data('url') + ('?' + params);
      return window.location = new_dirmon_path;
    });
  }
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rocketjob_mission_control-6.1.0 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.7 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.6 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.5 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.4 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.3 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.2 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js
rocketjob_mission_control-6.0.1 app/assets/javascripts/rocket_job_mission_control/dirmon_entries.js