From 14df959256e05409bc029652630bcd4df3369d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Wed, 30 May 2001 21:01:13 +0000 Subject: [PATCH] Beautified the way database list is displayed with NS4 --- ChangeLog | 3 +++ left.js | 18 ++++++++++++++++-- left.php3 | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39c03d876..d0cd0640e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-05-30 Loïc Chapeaux + * left.js, left.php3 : beautify the way database list is displayed with NS4 + 2001-05-30 Pete Kelly * db_readdump.php3, line 57: fixed the bug #427796 diff --git a/left.js b/left.js index 81f7e0ea6..e6d8fe70d 100644 --- a/left.js +++ b/left.js @@ -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; }'); diff --git a/left.php3 b/left.php3 index 3bae5d68b..0488c1395 100755 --- a/left.php3 +++ b/left.php3 @@ -85,6 +85,7 @@ if($server > 0) if (isNS4) { firstEl = 'el1Parent'; firstInd = nsGetIndex(firstEl); + nsShowAll(); nsArrangeList(); } //-->