Visually highlight active initial in privs table

Signed-off-by: J.M <me@mynetx.net>
This commit is contained in:
J.M 2013-12-31 15:07:09 +01:00
parent 4ac53a14a7
commit aa05823d92
2 changed files with 9 additions and 2 deletions

View File

@ -3174,8 +3174,11 @@ function PMA_getHtmlForDisplayTheInitials($array_initials)
if (! empty($tmp_initial)) {
if ($initial_was_found) {
$html_output .= '<td>'
. '<a class="ajax"'
. ' href="server_privileges.php'
. '<a class="ajax'
. ((isset($_REQUEST['initial'])
&& $_REQUEST['initial'] === $tmp_initial
) ? ' active' : '')
. '" href="server_privileges.php'
. PMA_URL_getCommon(array('initial' => $tmp_initial))
. '">' . $tmp_initial
. '</a>'

View File

@ -134,6 +134,10 @@ a:hover {
<?php echo $_SESSION['PMA_Theme']->getCssGradient('ffffff', 'cccccc'); ?>
}
#initials_table a.active {
<?php echo $_SESSION['PMA_Theme']->getCssGradient('cccccc', 'ffffff'); ?>
}
dfn {
font-style: normal;
}