]> git.joonet.de Git - adminer.git/commitdiff
IE compatibility
authorJakub Vrana <jakub@vrana.cz>
Mon, 18 Oct 2010 22:11:54 +0000 (00:11 +0200)
committerJakub Vrana <jakub@vrana.cz>
Mon, 18 Oct 2010 22:11:54 +0000 (00:11 +0200)
adminer/static/functions.js

index f1439bf4b2ac6fae9d359f8e38326c30c842cd1d..c355f4b2c61a527939906e7fb392debde763489d 100644 (file)
@@ -230,7 +230,7 @@ function ajaxForm(form, data) {
                params.push(data);
        }
        if (form.method == 'post') {
-               return ajaxMain(form.action || location.href, params.join('&'));
+               return ajaxMain((/\?/.test(form.action) ? form.action : location.href), params.join('&')); // ? - always part of Adminer URL
        } else {
                return ajaxMain((form.action || location.pathname) + '?' + params.join('&'));
        }