Permalink
Browse files

Autodisplay long table names in tables filter plugin

  • Loading branch information...
1 parent 69d49e3 commit 4b4fa16a374ef235bfd9fdebe65069eb49b4f550 @vrana committed Aug 9, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 adminer/include/adminer.inc.php
  2. +1 −1 editor/include/adminer.inc.php
  3. +1 −1 plugins/tables-filter.php
@@ -855,7 +855,7 @@ function navigation($missing) {
* @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
@@ -559,7 +559,7 @@ function navigation($missing) {
}
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
@@ -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";

0 comments on commit 4b4fa16

Please sign in to comment.