ItEr23S08CUEdicionCalendarioLaboral: Fixed some minor visual issues.

This commit is contained in:
Manuel Rego Casasnovas 2009-08-26 16:27:05 +02:00 committed by Óscar González Fernández
parent f9be9a36e0
commit 9827bebf7f
2 changed files with 5 additions and 5 deletions

View file

@ -68,9 +68,9 @@ public class CalendarHighlightedDays extends HtmlMacroComponent {
public void highlightDays() {
String javascript = "highlightDays('" + ancestorExceptionDays
+ "', 'black', 'orange', '" + ownExceptionDays
+ "', 'black', 'red', '" + zeroHoursDays
+ "', 'white', 'lightgrey', 'lightgrey', 'white', '"
+ "', 'white', 'orange', '" + ownExceptionDays
+ "', 'white', 'red', '" + zeroHoursDays
+ "', 'red', 'white', 'lightgrey', 'white', '"
+ getCalendarUuid() + "');";
Clients.evalJavaScript(javascript);

View file

@ -40,10 +40,10 @@ function highlightDays(ancestorExceptionDays, ancestorExceptionColor, ancestorEx
"color:" + zeroHoursColor + ";background-color:" + zeroHoursBgColor);
} else if (ownExceptions.in_array(day)) {
nodes[i].setAttribute("style",
"color:" + ownExceptionColor + ";background-color:" + ownExceptionBgColor);
"color:" + ownExceptionColor + ";background-color:" + ownExceptionBgColor + ";font-weight: bold");
} else if (ancestorExceptions.in_array(day)) {
nodes[i].setAttribute("style",
"color:" + ancestorExceptionColor + ";background-color:" + ancestorExceptionBgColor);
"color:" + ancestorExceptionColor + ";background-color:" + ancestorExceptionBgColor + ";font-weight: bold");
} else {
nodes[i].removeAttribute("style");
}