logs.js 422 B

1234567891011121314
  1. import $ from 'jquery';
  2. import { setParam } from 'mout/queryString';
  3. const prepareQuery = (key, value) => {
  4. return setParam(global.location.href, key, value);
  5. };
  6. $(document).on('change', '.logs-content .block-select select[name]', (event) => {
  7. const target = $(event.currentTarget);
  8. const name = target.attr('name');
  9. const value = target.val();
  10. global.location.href = prepareQuery(name, value);
  11. });