]> git.joonet.de Git - adminer.git/commitdiff
Unify HTML for list of tables in Editor according to Adminer
authorPeter Knut <peter@pematon.com>
Sat, 20 Jan 2018 22:54:11 +0000 (23:54 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 22 Jan 2018 09:57:20 +0000 (10:57 +0100)
editor/include/adminer.inc.php

index f9f38e5033b3329a1d2c3dbea3ee973c3c4025e3..4fa29af62615df6618475680a553fd333bafd8f1 100644 (file)
@@ -592,17 +592,19 @@ qsl('div').onclick = whisperClick;", "")
        }
 
        function tablesPrint($tables) {
-               echo "<p id='tables'>";
+               echo "<ul id='tables'>";
                echo script("mixin(qs('#tables'), {onmouseover: menuOver, onmouseout: menuOut});");
                foreach ($tables as $row) {
+                       echo '<li>';
                        $name = $this->tableName($row);
                        if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name
                                echo "<a href='" . h(ME) . 'select=' . urlencode($row["Name"]) . "'"
                                        . bold($_GET["select"] == $row["Name"] || $_GET["edit"] == $row["Name"], "select")
-                                       . " title='" . lang('Select data') . "'>$name</a><br>\n"
+                                       . " title='" . lang('Select data') . "'>$name</a>\n"
                                ;
                        }
                }
+               echo "</ul>\n";
        }
 
        function _foreignColumn($foreignKeys, $column) {