]> git.joonet.de Git - adminer.git/commitdiff
Remove ? from form.action in AJAX (thanks to krucipisek)
authorJakub Vrana <jakub@vrana.cz>
Tue, 1 Mar 2011 16:02:20 +0000 (17:02 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 1 Mar 2011 16:02:20 +0000 (17:02 +0100)
adminer/static/functions.js

index dc9867111474dd65e9c5ab2bdc7502925414fc41..b0ea09394f650cae1b46f58713a6d8052b886f02 100644 (file)
@@ -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('&'));
 }