mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 12:25:23 +00:00
Fix for bug #588.
Monotone-Parent: fdc69a8bf5b6b5a68b37d7ddf77d671fc0bcbe15 Monotone-Revision: cd845bf5330077e8801634336d85db1dd1834d50 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-04-26T16:01:01 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -936,26 +936,24 @@ function changeDateSelectorDisplay(day, keepCurrentDay) {
|
||||
url += "?day=" + day;
|
||||
}
|
||||
|
||||
if (day != currentDay) {
|
||||
if (!keepCurrentDay)
|
||||
currentDay = day;
|
||||
|
||||
var month = day.substr(0, 6);
|
||||
if (cachedDateSelectors[month]) {
|
||||
// log ("restoring cached selector for month: " + month);
|
||||
setDateSelectorContent(cachedDateSelectors[month]);
|
||||
}
|
||||
else {
|
||||
// log ("loading selector for month: " + month);
|
||||
if (document.dateSelectorAjaxRequest) {
|
||||
document.dateSelectorAjaxRequest.aborted = true;
|
||||
document.dateSelectorAjaxRequest.abort();
|
||||
}
|
||||
document.dateSelectorAjaxRequest
|
||||
= triggerAjaxRequest(url,
|
||||
dateSelectorCallback,
|
||||
month);
|
||||
if (!keepCurrentDay)
|
||||
currentDay = day;
|
||||
|
||||
var month = day.substr(0, 6);
|
||||
if (cachedDateSelectors[month]) {
|
||||
// log ("restoring cached selector for month: " + month);
|
||||
setDateSelectorContent(cachedDateSelectors[month]);
|
||||
}
|
||||
else {
|
||||
// log ("loading selector for month: " + month);
|
||||
if (document.dateSelectorAjaxRequest) {
|
||||
document.dateSelectorAjaxRequest.aborted = true;
|
||||
document.dateSelectorAjaxRequest.abort();
|
||||
}
|
||||
document.dateSelectorAjaxRequest
|
||||
= triggerAjaxRequest(url,
|
||||
dateSelectorCallback,
|
||||
month);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user