diff --git a/ChangeLog b/ChangeLog index 763728009..d9ad90b27 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,13 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-04-28 Garvin Hicking + * left.php, libraries/left.js: Fixed unneeded spacing between items + and wrong collapsion in nested mode (Bug #943140). Removed + some debugging non-xhtml tags. + * css/phpmyadmin.css.php: Added zero margin/padding to nowrap element + for compatibility to the good old nobr-tag + 2004-04-27 Michal Cihar * calendar.php, libraries/tbl_change.js: Don't reset clock when moving in calendar. diff --git a/css/phpmyadmin.css.php b/css/phpmyadmin.css.php index 35e4b4ca7..4bd9200ee 100644 --- a/css/phpmyadmin.css.php +++ b/css/phpmyadmin.css.php @@ -280,6 +280,8 @@ form.clock { .nowrap { white-space: nowrap; + margin: 0px; + padding: 0px; } li { diff --git a/left.php b/left.php index d7fea812d..ae4826c63 100644 --- a/left.php +++ b/left.php @@ -97,11 +97,11 @@ function PMA_nestedSetHeaderParent($baseid, $key, $keyhistory, $indent, $indent_ echo PMA_indent($indent * 6) . '
'; echo '+' . "\n"; echo PMA_indent($indent * 6) . '' . htmlspecialchars($name) . '  (' . $counter . ')
' . "\n"; - echo PMA_indent($indent * 5) . '' . "\n"; + echo PMA_indent($indent * 5) . '' . "\n"; echo "\n"; if ($childout) { - echo PMA_indent($indent * 5) . '
' . "\n"; + echo PMA_indent($indent * 5) . '
' . "\n"; } } @@ -124,15 +124,15 @@ function PMA_nestedSetHeader($baseid, $tablestack, $keyhistory, $indent, $indent } if ($headerOut) { - echo PMA_indent($indent * 5) . '
' . "\n"; + echo PMA_indent($indent * 5) . '
' . "\n"; } } } if ($firstGroup && $firstGroupClose) { - echo PMA_indent($indent * 4) . '' . "\n"; + echo PMA_indent($indent * 4) . '' . "\n"; } elseif ($firstGroup) { - echo PMA_indent($indent * 4) . '' . "\n"; + echo PMA_indent($indent * 4) . '' . "\n"; } } @@ -163,19 +163,19 @@ function PMA_nestedSet($baseid, $tablestack, $key = '__protected__', $keyhistory $loops = 0; foreach($tablestack['pma_name'] AS $tkey => $tval) { - echo PMA_indent($indent * 5) . '
'; + echo PMA_indent($indent * 5) . ''; $items = explode("\n", $tablestack['pma_list_item'][$tkey]); foreach($items AS $ikey => $ival) { echo "\n"; echo PMA_indent(($indent * 5)) . $ival; } - echo "
\n"; + echo "\n"; $loops++; } if ($divClose) { - echo PMA_indent($indent * 5) . ''; + echo PMA_indent($indent * 5) . ''; } } elseif (is_array($tablestack)) { @@ -592,9 +592,9 @@ if ($num_dbs > 1) { $table_array[$table] .= ' ' . $strBrowse . ': ' . $url_title . ' ' . "\n"; if (PMA_USR_BROWSER_AGENT == 'IE') { - $table_array[$table] .= ' ' . ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '
' . "\n"; + $table_array[$table] .= ' ' . ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '' . "\n"; } else { - $table_array[$table] .= ' ' . ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '
' . "\n"; + $table_array[$table] .= ' ' . ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '' . "\n"; } $table_title[$table] = htmlspecialchars($table); @@ -745,7 +745,7 @@ else if ($num_dbs == 1) {   () -
+
'; if ($cfg['LeftFrameLight']) { echo "\n"; ?> <?php echo $strBrowse . ': ' . $url_title; ?>  -

+
'; $list_item .= '' . $strBrowse . ': ' . $url_title . ''; $list_item .= ' ' . "\n"; $list_item .= ''; - $list_item .= ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '

'; + $list_item .= ($alias != '' && $cfg['ShowTooltipAliasTB'] ? $alias : htmlspecialchars($table)) . '
'; // garvin: Check whether to display nested sets if (!empty($cfg['LeftFrameTableSeparator'])) { diff --git a/libraries/left.js b/libraries/left.js index 603dbd6d3..f09007782 100644 --- a/libraries/left.js +++ b/libraries/left.js @@ -126,7 +126,7 @@ function initIt() for (i = 0; i < tempCollCnt; i++) { if (tempColl[i].id == expandedDb) tempColl[i].style.display = 'block'; - else if (tempColl[i].className == 'child') + else if (tempColl[i].className == 'child' || tempColl[i].className == 'child nowrap') tempColl[i].style.display = 'none'; } } // end of the DOM case @@ -136,7 +136,7 @@ function initIt() for (i = 0; i < tempCollCnt; i++) { if (tempColl(i).id == expandedDb) tempColl(i).style.display = 'block'; - else if (tempColl(i).className == 'child') + else if (tempColl(i).className == 'child' || tempColl(i).className == 'child nowrap') tempColl(i).style.display = 'none'; } } // end of the IE4 case