[Bug #1321] Reseting highlighted days in calendar to prevent issue

FEA: ItEr75S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-01-03 08:57:43 +01:00
parent 3c5c14d728
commit e499ec4652
2 changed files with 10 additions and 0 deletions

View file

@ -537,6 +537,8 @@ public abstract class BaseCalendarEditionController extends
public void highlightDaysOnCalendar() {
Calendar calendar = (Calendar) window.getFellow("calendarWidget");
Clients.response(new AuInvoke(calendar, "resetHighlightedDates"));
Map<String, List<Integer>> daysByColor = getDaysCurrentMonthByColor();
for (String color : daysByColor.keySet()) {
Clients.response(new AuInvoke(calendar, "highlightDates",

View file

@ -81,6 +81,14 @@
});
}
</attribute>
<attribute w:name="resetHighlightedDates">
function () {
var nodes = $('td', this).not('.z-outside');
nodes.each(function () {
$(this).css({color: "black", backgroundColor: "white"});
});
}
</attribute>
</calendar>
<grid width="180px" sclass="day-details">