diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 77081eb2..9b1233d4 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -736,14 +736,14 @@ DROP PROCEDURE adminer_alter; } ?> - +

"(" . lang('database') . ")") + $databases, DB, "this.form.submit();") : ''); ?> - onclick="this.form.submit(); return false;"> + onclick="eventStop(event);"> select_db(DB)) { if (support("scheme")) { diff --git a/adminer/static/functions.js b/adminer/static/functions.js index e2906fed..ca2ddbc4 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -430,7 +430,7 @@ function bodyClick(event, db, ns) { var match2 = /&ns=([^&]*)/.exec(el.href); return !(db == (match ? match[1] : '') && ns == (match2 ? match2[1] : '') && ajaxMain(el.href, '', event)); } - if (/^input$/i.test(el.tagName) && (el.type == 'image' || (el.type == 'submit' && el.name != 'logout' && !/&(database|scheme|create|view|sql|user|dump)=/.test(location.href)))) { + if (/^input$/i.test(el.tagName) && (el.type == 'image' || (el.type == 'submit' && !/&(database|scheme|create|view|sql|user|dump)=/.test(location.href)))) { return !ajaxForm(el.form, (el.name ? encodeURIComponent(el.name) + (el.type == 'image' ? '.x' : '') + '=1' : '')); } return true; diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index cabcdae6..3a587302 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -501,7 +501,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5

- +