Fix for bug #3163
Monotone-Parent: 9b6f0c65763b57f4f4f3198f2400f943060f7bb4 Monotone-Revision: d85d7d8fee328504d17e9458ec53c9819d09b3bc Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-12-11T17:25:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
6d59731fe2
commit
376a681d94
|
@ -1298,7 +1298,7 @@ function onListFilterChange() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectMonthInMenu(menu, month) {
|
function selectMonthInMenu(menu, month) {
|
||||||
var entries = menu.childNodes[1].childNodesWithTag("LI");
|
var entries = $(menu).select("LI");
|
||||||
for (i = 0; i < entries.length; i++) {
|
for (i = 0; i < entries.length; i++) {
|
||||||
var entry = entries[i];
|
var entry = entries[i];
|
||||||
var entryMonth = entry.getAttribute("month");
|
var entryMonth = entry.getAttribute("month");
|
||||||
|
@ -1309,17 +1309,15 @@ function selectMonthInMenu(menu, month) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectYearInMenu(menu, month) {
|
function selectYearInMenu(menu, year) {
|
||||||
var entries = menu.childNodes[1].childNodes;
|
var entries = $(menu).select("LI");
|
||||||
for (i = 0; i < entries.length; i++) {
|
for (i = 0; i < entries.length; i++) {
|
||||||
var entry = entries[i];
|
var entry = entries[i];
|
||||||
if (entry.tagName == "LI") {
|
var entryYear = entry.innerHTML.strip();
|
||||||
var entryMonth = entry.innerHTML;
|
if (entryYear == year)
|
||||||
if (entryMonth == month)
|
entry.addClassName("currentMonth");
|
||||||
entry.addClassName("currentMonth");
|
else
|
||||||
else
|
entry.removeClassName("currentMonth");
|
||||||
entry.removeClassName("currentMonth");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1344,14 +1342,14 @@ function popupMonthMenu(event) {
|
||||||
|
|
||||||
function onMonthMenuItemClick(event) {
|
function onMonthMenuItemClick(event) {
|
||||||
var month = '' + this.getAttribute("month");
|
var month = '' + this.getAttribute("month");
|
||||||
var year = '' + $("yearLabel").innerHTML;
|
var year = '' + $("yearLabel").innerHTML.strip();
|
||||||
|
|
||||||
changeDateSelectorDisplay(year + month + "01", true);
|
changeDateSelectorDisplay(year + month + "01", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function onYearMenuItemClick(event) {
|
function onYearMenuItemClick(event) {
|
||||||
var month = '' + $("monthLabel").getAttribute("month");;
|
var month = '' + $("monthLabel").getAttribute("month");;
|
||||||
var year = '' + this.innerHTML;
|
var year = '' + this.innerHTML.strip();
|
||||||
|
|
||||||
changeDateSelectorDisplay(year + month + "01", true);
|
changeDateSelectorDisplay(year + month + "01", true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue