Beautified the way database list is displayed with NS4

This commit is contained in:
Loïc Chapeaux
2001-05-30 21:01:13 +00:00
parent 4d067f3a01
commit 14df959256
3 changed files with 20 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-05-30 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* left.js, left.php3 : beautify the way database list is displayed with NS4
2001-05-30 Pete Kelly <webmaster@trafficg.com>
* db_readdump.php3, line 57: fixed the bug #427796

18
left.js
View File

@@ -113,6 +113,20 @@ function nsArrangeList() {
} // end of the 'nsArrangeList()' function
/**
* Expand databases at startup
*
* @access public
*/
function nsShowAll() {
var layersCnt = document.layers.length;
for (i = firstInd; i < layersCnt; i++) {
whichEl = document.layers[i];
whichEl.visibility = 'show';
}
} // end of the 'nsShowAll()' function
/**
* Collapses databases at startup
*
@@ -238,8 +252,8 @@ if (capable) {
write('DIV { color:black; }');
}
else {
write('.parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; position:absolute; visibility:show; color: black;}');
write('.child {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;color: #000000; position:absolute; visibility:show}');
write('.parent {font-family: Verdana, Arial, Helvetica, sans-serif; color: #000000; text-decoration:none; position:absolute; visibility:hidden; color: black;}');
write('.child {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt;color: #000000; position:absolute; visibility:hidden}');
write('.item { color: darkblue; text-decoration:none;}');
write('.regular {font-family: Arial,Helvetica,sans-serif; position:absolute; visibility:hidden}');
write('DIV { color:black; }');

View File

@@ -85,6 +85,7 @@ if($server > 0)
if (isNS4) {
firstEl = 'el1Parent';
firstInd = nsGetIndex(firstEl);
nsShowAll();
nsArrangeList();
}
//-->