fixed js bugs
This commit is contained in:
13
left.php3
13
left.php3
@@ -96,11 +96,12 @@ if ($num_dbs > 1) {
|
|||||||
}
|
}
|
||||||
} // end if... else if...
|
} // end if... else if...
|
||||||
} // end if
|
} // end if
|
||||||
var fontFamily = '<?php echo $left_font_family; ?>';
|
var fontFamily = '<?php echo $left_font_family; ?>';
|
||||||
var fontSize = '<?php echo $font_size; ?>';
|
var fontSize = '<?php echo $font_size; ?>';
|
||||||
var fontBig = '<?php echo $font_bigger; ?>';
|
var fontBig = '<?php echo $font_bigger; ?>';
|
||||||
var fontSmall = '<?php echo $font_smaller; ?>';
|
var fontSmall = '<?php echo $font_smaller; ?>';
|
||||||
var isServer = <?php echo ($server > 0) ? 'true' : 'false'; ?>;
|
var isServer = <?php echo ($server > 0) ? 'true' : 'false'; ?>;
|
||||||
|
var isLightMode = <?php echo ($cfgLeftFrameLight == TRUE) ? 'true' : 'false'; ?>;
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
<script src="libraries/left.js" type="text/javascript" language="javascript1.2"></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)) {
|
if (!empty($num_tables)) {
|
||||||
echo "\n";
|
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>
|
<img name="imEx" id="el<?php echo $j; ?>Img" src="images/plus.gif" border="0" width="9" height="9" alt="+" /></a>
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
|
@@ -113,7 +113,7 @@ function nsShowAll() {
|
|||||||
*/
|
*/
|
||||||
function initIt()
|
function initIt()
|
||||||
{
|
{
|
||||||
if (!capable || !isServer || typeof(expandedDb) == 'undefined')
|
if (!capable || !isServer || isLightMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var tempColl = null;
|
var tempColl = null;
|
||||||
@@ -289,12 +289,12 @@ if (capable) {
|
|||||||
document.writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
|
document.writeln('.tblItem:hover {color: #FF0000; text-decoration: underline}');
|
||||||
}
|
}
|
||||||
else { // NS4 case
|
else { // NS4 case
|
||||||
if (typeof(expandedDb) != 'undefined') {
|
if (isLightMode) {
|
||||||
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 {
|
|
||||||
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
|
document.writeln('.parent {font-family: ' + fontFamily + '; color: #000000; text-decoration: none}');
|
||||||
document.writeln('.child {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399}');
|
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}');
|
document.writeln('.item, .tblItem {font-family: ' + fontFamily + '; font-size: ' + fontSmall + '; color: #333399; text-decoration: none}');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user