diff options
author | Phil Davis <phil.davis@inf.org> | 2014-12-05 17:36:49 +0545 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-05 11:06:28 -0200 |
commit | d68be5d67a2ae7e7316c421d2ca4e79f60e51238 (patch) | |
tree | 502efc28840a36f20a90dabc107b8f013dfccfc5 /usr/local/www/widgets | |
parent | d4337df8c997b8d33e100ff8581f67e65e0863c1 (diff) | |
download | pfsense-d68be5d67a2ae7e7316c421d2ca4e79f60e51238.zip pfsense-d68be5d67a2ae7e7316c421d2ca4e79f60e51238.tar.gz |
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.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r-- | usr/local/www/widgets/widgets/gateways.widget.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index bde169f..cf42283 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -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> |