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