diff options
author | Colin Fleming <cj_fleming@sky.com> | 2013-01-16 19:34:02 +0000 |
---|---|---|
committer | Colin Fleming <cj_fleming@sky.com> | 2013-01-16 19:34:02 +0000 |
commit | a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3 (patch) | |
tree | cf4d91b9b6e1cbd5aa65f0a886db0072e30a34bf /usr/local/www/firewall_schedule_edit.php | |
parent | 2151894c4f08a67ff2e0ffd49fe363425e5c56f9 (diff) | |
download | pfsense-a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3.zip pfsense-a0c0e8aefbac3e3979bac5fbfdecfedfe49cc2d3.tar.gz |
Tidy up HTML Colour Names
With XHTML 1.0, the extended colour names are invalid, to make pfSense
as W3C compliant as possible, need to go back to using the HEX code.
Diffstat (limited to 'usr/local/www/firewall_schedule_edit.php')
-rw-r--r-- | usr/local/www/firewall_schedule_edit.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr/local/www/firewall_schedule_edit.php b/usr/local/www/firewall_schedule_edit.php index 8e81d1b..a9d0b67 100644 --- a/usr/local/www/firewall_schedule_edit.php +++ b/usr/local/www/firewall_schedule_edit.php @@ -234,7 +234,7 @@ function repeatExistingDays(){ tempstr = 'w' + week + 'p' + daypos; daycell = eval('document.getElementById(tempstr)'); if (daydone == "-1"){ - if (daycell.style.backgroundColor == "lightcoral") + if (daycell.style.backgroundColor == "#F08080") // lightcoral daytogglerepeating(week,daypos,true); else daytogglerepeating(week,daypos,false); @@ -257,11 +257,11 @@ function daytogglerepeating(week,daypos,bExists){ if (daycell != null) { if (bExists){ - daycell.style.backgroundColor = "WHITE"; + daycell.style.backgroundColor = "#FFFFFF"; // white } else { - daycell.style.backgroundColor = "lightcoral"; + daycell.style.backgroundColor = "#F08080"; // lightcoral } if (dayoriginalpos != "-1") @@ -302,12 +302,12 @@ function daytoggle(id) { var daycell = document.getElementById(idmod); if (daycell != null){ - if (daycell.style.backgroundColor == "RED"){ - daycell.style.backgroundColor = "WHITE"; + if (daycell.style.backgroundColor == "#FF0000"){ // red + daycell.style.backgroundColor = "#FFFFFF"; // white str = id + ","; daysSelected = daysSelected.replace(str, ""); } - else if (daycell.style.backgroundColor == "lightcoral") + else if (daycell.style.backgroundColor == "#F08080") // lightcoral { daytogglerepeating(week,daypos,true); } @@ -315,11 +315,11 @@ function daytoggle(id) { { if (!runrepeat) { - daycell.style.backgroundColor = "RED"; + daycell.style.backgroundColor = "#FF0000"; // red } else { - daycell.style.backgroundColor = "lightcoral"; + daycell.style.backgroundColor = "#F08080"; // lightcoral daytogglerepeating(week,daypos,false); } daysSelected += id + ","; @@ -654,7 +654,7 @@ function clearCalendar(){ tempstr = 'w' + j + 'p' + k; daycell = eval('document.getElementById(tempstr)'); if (daycell != null){ - daycell.style.backgroundColor = "WHITE"; + daycell.style.backgroundColor = "#FFFFFF"; // white } } } @@ -1164,4 +1164,4 @@ EOD; </td></tr></table></form> <?php include("fend.inc"); ?> </body> -</html> +</html>
\ No newline at end of file |