diff options
author | Phil Davis <phil.davis@inf.org> | 2014-12-05 17:36:49 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-12-05 17:36:49 +0545 |
commit | 6404148cf3d8a81fcd6333a923fe41dd91ae78d2 (patch) | |
tree | 69a28ecfe29a957a2ca95c63368417d8c4215a88 /usr/local/www | |
parent | d57c55ca3b5b196a51b55ea60d01e00a987c9a17 (diff) | |
download | pfsense-6404148cf3d8a81fcd6333a923fe41dd91ae78d2.zip pfsense-6404148cf3d8a81fcd6333a923fe41dd91ae78d2.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')
-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> |