Sha256: e07901a31324fb8eefeb00fa4683c44dd6e4818a051e341ddfa6be42aa14a289
Contents?: true
Size: 707 Bytes
Versions: 15
Compression:
Stored size: 707 Bytes
Contents
'use strict'; $(document).on('ready', 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
15 entries across 15 versions & 1 rubygems