mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Remove ? from form.action in AJAX (thanks to krucipisek)
This commit is contained in:
@@ -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('&'));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user