Fixed the behavoir of NaviPointerBackground configuration directive

This commit is contained in:
Rouslan Placella 2012-07-17 23:53:45 +01:00
parent 4a554723ea
commit 36690ba729
4 changed files with 11 additions and 5 deletions

View File

@ -185,14 +185,14 @@ $(function() {
'mouseover',
function () {
if ($('li:visible', this).length == 0) {
$(this).css('background', '#ddd');
$(this).addClass('activePointer');
}
}
);
$('#pma_navigation_tree.highlight li:not(.fast_filter)').live(
'mouseout',
function () {
$(this).css('background', '');
$(this).removeClass('activePointer');
}
);

View File

@ -99,9 +99,12 @@ if (! defined('PMA_MINIMUM_COMMON') && ! defined('TESTSUITE')) {
color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
}
#pma_navigation_tree a:hover {
color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
text-decoration: underline;
}
#pma_navigation_tree li.activePointer {
color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
}
#pma_navigation_tree ul {
clear: both;
padding: 0;

View File

@ -89,9 +89,12 @@ if (! defined('PMA_MINIMUM_COMMON') && ! defined('TESTSUITE')) {
color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
}
#pma_navigation_tree a:hover {
color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
text-decoration: underline;
}
#pma_navigation_tree li.activePointer {
color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
}
#pma_navigation_tree ul {
clear: both;
padding: 0;

View File

@ -24,7 +24,7 @@ $GLOBALS['cfg']['NaviBackground'] = '#f3f3f3';
$GLOBALS['cfg']['NaviPointerColor'] = '#000';
// background of the pointer in navi frame
$GLOBALS['cfg']['NaviPointerBackground'] = '#99c';
$GLOBALS['cfg']['NaviPointerBackground'] = '#ddd';
/**
* main frame