Remove ? from form.action in AJAX (thanks to krucipisek)
This commit is contained in:
parent
de4820cc83
commit
db030df487
|
@ -352,7 +352,7 @@ function ajaxForm(form, data) {
|
|||
if (form.method == 'post') {
|
||||
return ajaxMain((/\?/.test(form.action) ? form.action : location.href), params.join('&')); // ? - always part of Adminer URL
|
||||
}
|
||||
return ajaxMain((form.action || location.pathname) + '?' + params.join('&'));
|
||||
return ajaxMain((form.action || location.href).replace(/\?.*/, '') + '?' + params.join('&'));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue