]> git.joonet.de Git - adminer.git/commitdiff
Autodisplay long table names in tables filter plugin
authorJakub Vrana <jakub@vrana.cz>
Thu, 9 Aug 2012 16:11:55 +0000 (09:11 -0700)
committerJakub Vrana <jakub@vrana.cz>
Thu, 9 Aug 2012 16:11:55 +0000 (09:11 -0700)
adminer/include/adminer.inc.php
editor/include/adminer.inc.php
plugins/tables-filter.php

index a6e4e8a4078a78fc5734c38eff012d1e7228acb0..6c2fff602944b83210d5e7d0efcda52a82ba3e82 100644 (file)
@@ -855,7 +855,7 @@ DROP PROCEDURE adminer_alter;
        * @return null
        */
        function tablesPrint($tables) {
-               echo '<p id="tables" onmouseover="menuOver(this);" onmouseout="menuOut(this);">' . "\n";
+               echo "<p id='tables' onmouseover='menuOver(this);' onmouseout='menuOut(this);'>\n";
                foreach ($tables as $table => $type) {
                        echo '<a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table) . ">" . lang('select') . "</a> ";
                        echo '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold($_GET["table"] == $table) . " title='" . lang('Show structure') . "'>" . $this->tableName(array("Name" => $table)) . "</a><br>\n"; //! Adminer::tableName may work with full table status
index 8135452750833e27b019f90e506548fea12e9623..f69c7df91d406fdc52cd529c8701276caed62760 100644 (file)
@@ -559,7 +559,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
        }
        
        function tablesPrint($tables) {
-               echo '<p id="tables" onmouseover="menuOver(this);" onmouseout="menuOut(this);">' . "\n";
+               echo "<p id='tables' onmouseover='menuOver(this);' onmouseout='menuOut(this);'>\n";
                foreach ($tables as $row) {
                        $name = $this->tableName($row);
                        if (isset($row["Engine"]) && $name != "") { // ignore views and tables without name
index 2f3339e80a407624a7702a3dc3a158fbadfb9639..1c77d26105697e723ac38b6cd22f1b3456ff2d77 100644 (file)
@@ -23,7 +23,7 @@ function tablesFilter(value) {
 </script>
 <p class="jsonly"><input onkeyup="tablesFilter(this.value);">
 <?php
-               echo "<p id='tables'>\n";
+               echo "<p id='tables' onmouseover='menuOver(this);' onmouseout='menuOut(this);'>\n";
                foreach ($tables as $table => $type) {
                        echo '<span><a href="' . h(ME) . 'select=' . urlencode($table) . '"' . bold($_GET["select"] == $table) . ">" . lang('select') . "</a> ";
                        echo '<a href="' . h(ME) . 'table=' . urlencode($table) . '"' . bold($_GET["table"] == $table) . ">" . h($table) . "</a><br></span>\n";