Commit dcebf59f authored by Phil Hughes's avatar Phil Hughes

fixed form submitting

parent 0bba29f3
......@@ -359,7 +359,12 @@ $(function () {
$(document).trigger('init.scrolling-tabs');
$('form.filter-form').on('submit', function (event) {
const link = document.createElement('a');
link.href = this.action;
const action = `${this.action}${link.search === '' ? '?' : '&'}`;
event.preventDefault();
gl.utils.visitUrl(`${this.action}&${$(this).serialize()}`);
gl.utils.visitUrl(`${action}${$(this).serialize()}`);
});
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment