diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 65bc2dbb..2cd5831e 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -785,7 +785,7 @@ DROP PROCEDURE adminer_alter; foreach ($usernames as $username => $password) { if ($password !== null) { if ($first) { - echo "
\n"; + echo "
\n";
$first = false;
}
echo "($drivers[$driver]) " . h($username . ($server != "" ? "@$server" : "")) . "
\n";
@@ -867,7 +867,7 @@ DROP PROCEDURE adminer_alter;
* @return null
*/
function tablesPrint($tables) {
- echo "
\n"; + echo "
\n";
foreach ($tables as $table => $type) {
echo '" . lang('select') . " ";
echo '" . $this->tableName(array("Name" => $table)) . "
\n"; //! Adminer::tableName may work with full table status
diff --git a/adminer/static/functions.js b/adminer/static/functions.js
index d502540b..df574a4d 100644
--- a/adminer/static/functions.js
+++ b/adminer/static/functions.js
@@ -209,10 +209,22 @@ function pageClick(href, page, event) {
}
}
-function menuOver(el) {
- el.style.overflow = 'visible';
+
+
+/** Display items in menu
+* @param HTMLElement
+* @param MouseEvent
+*/
+function menuOver(el, event) {
+ var a = event.target;
+ if (/^a$/i.test(a.tagName) && a.offsetLeft + a.offsetWidth > a.parentNode.offsetWidth) {
+ el.style.overflow = 'visible';
+ }
}
+/** Hide items in menu
+* @param HTMLElement
+*/
function menuOut(el) {
el.style.overflow = 'auto';
}
diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php
index 019833b6..ea66d33f 100644
--- a/editor/include/adminer.inc.php
+++ b/editor/include/adminer.inc.php
@@ -538,7 +538,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
foreach ((array) $_SESSION["pwds"]["server"][""] as $username => $password) {
if ($password !== null) {
if ($first) {
- echo "
\n"; + echo "
\n";
$first = false;
}
echo "" . ($username != "" ? h($username) : "" . lang('empty') . "") . "
\n";
@@ -569,7 +569,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
}
function tablesPrint($tables) {
- echo "
\n"; + echo "
\n"; foreach ($tables as $row) { $name = $this->tableName($row); if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name diff --git a/plugins/tables-filter.php b/plugins/tables-filter.php index 1c77d261..bb9664b7 100644 --- a/plugins/tables-filter.php +++ b/plugins/tables-filter.php @@ -23,7 +23,7 @@ function tablesFilter(value) {
\n"; + echo "
\n";
foreach ($tables as $table => $type) {
echo '" . lang('select') . " ";
echo '" . h($table) . "
\n";