fixed js bugs

This commit is contained in:
Loïc Chapeaux
2002-01-20 14:47:42 +00:00
parent 96999d0d49
commit 8531ae23d6
2 changed files with 12 additions and 11 deletions

View File

@@ -96,11 +96,12 @@ if ($num_dbs > 1) {
}
} // end if... else if...
} // end if
var fontFamily = '<?php echo $left_font_family; ?>';
var fontSize = '<?php echo $font_size; ?>';
var fontBig = '<?php echo $font_bigger; ?>';
var fontSmall = '<?php echo $font_smaller; ?>';
var isServer = <?php echo ($server > 0) ? 'true' : 'false'; ?>;
var fontFamily = '<?php echo $left_font_family; ?>';
var fontSize = '<?php echo $font_size; ?>';
var fontBig = '<?php echo $font_bigger; ?>';
var fontSmall = '<?php echo $font_smaller; ?>';
var isServer = <?php echo ($server > 0) ? 'true' : 'false'; ?>;
var isLightMode = <?php echo ($cfgLeftFrameLight == TRUE) ? 'true' : 'false'; ?>;
//-->
</script>
<script src="libraries/left.js" type="text/javascript" language="javascript1.2"></script>
@@ -237,7 +238,7 @@ if ($num_dbs > 1) {
if (!empty($num_tables)) {
echo "\n";
?>
<nobr><a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="if (capable) {expandBase('el<?php echo $j; ?>', true); return false}; else {return true}">
<nobr><a class="item" href="db_details.php3?<?php echo $common_url_query; ?>" onclick="if (capable) {expandBase('el<?php echo $j; ?>', true); return false} else {return true}">
<img name="imEx" id="el<?php echo $j; ?>Img" src="images/plus.gif" border="0" width="9" height="9" alt="+" /></a>
<?php
} else {

View File

@@ -113,7 +113,7 @@ function nsShowAll() {
*/
function initIt()
{
if (!capable || !isServer || typeof(expandedDb) == 'undefined')
if (!capable || !isServer || isLightMode)
return;
var tempColl = null;
@@ -289,12 +289,12 @@ if (capable) {
document.writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
}
else { // NS4 case
if (typeof(expandedDb) != 'undefined') {
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; position: absolute; visibility: hidden}');
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; position: absolute; visibility: hidden}');
} else {
if (isLightMode) {
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399}');
} else {
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none; position: absolute; visibility: hidden}');
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; position: absolute; visibility: hidden}');
}
document.writeln('.item, .tblItem {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; text-decoration: none}');
}