Use proper listr class for Gateways Widget Status

The Gateways Widget Status was not using the listr class, and so it was missing the borders for the right and bottom of its box.
Use the listr class.
Then use javascript to explicitly set the background-color to match the status, overriding the white that is specified in listr.
This commit is contained in:
Phil Davis 2014-12-05 17:36:49 +05:45 committed by Renato Botelho
parent d4337df8c9
commit d68be5d67a

View File

@ -123,7 +123,12 @@ $counter = 1;
$online = gettext("Unknown");
$bgcolor = "#ADD8E6"; // lightblue
}
echo "<td class=\"ellipsis\" bgcolor=\"$bgcolor\" align=\"center\" id=\"gateway$counter\">$online</td>\n";
echo "<td class=\"listr ellipsis\" align=\"center\" id=\"gateway$counter\">$online</td>\n";
?>
<script type="text/javascript">
jQuery('#gateway<?php echo $counter;?>').css('background-color',"<?php echo $bgcolor;?>");
</script>
<?php
$counter++;
?>
</tr>