mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-10 15:58:52 +00:00
See ChangeLog
Monotone-Parent: b8785a107526f1e90244fbdab4a759e95b15a5b0 Monotone-Revision: 03ab73ff63dcd41936ff772c87444389b1448a27 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-01-25T17:08:17 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-01-25 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
* UI/WebServerResources/SchedulerUI.js
|
||||
(restoreCurrentDaySelection): fixed selection of current day in
|
||||
mini-calendar.
|
||||
|
||||
2010-01-24 Ludovic Marcotte <lmarcotte@inverse.ca>
|
||||
|
||||
* Reorganized the layout of automated tests.
|
||||
|
||||
@@ -635,7 +635,7 @@ function gotoToday() {
|
||||
function setDateSelectorContent(content) {
|
||||
var div = $("dateSelectorView");
|
||||
|
||||
div.innerHTML = content;
|
||||
div.update(content);
|
||||
if (currentDay.length > 0)
|
||||
restoreCurrentDaySelection(div);
|
||||
|
||||
@@ -810,25 +810,19 @@ function tasksListCallback(http) {
|
||||
}
|
||||
|
||||
function restoreCurrentDaySelection(div) {
|
||||
var elements = $(div).getElementsByTagName("a");
|
||||
var day = null;
|
||||
var i = 9;
|
||||
while (!day && i < elements.length)
|
||||
{
|
||||
day = elements[i].day;
|
||||
i++;
|
||||
}
|
||||
|
||||
if (day
|
||||
&& day.substr(0, 6) == currentDay.substr(0, 6)) {
|
||||
for (i = 0; i < elements.length; i++) {
|
||||
day = elements[i].day;
|
||||
if (day && day == currentDay) {
|
||||
var td = $(elements[i]).getParentWithTagName("td");
|
||||
if (document.selectedDate)
|
||||
document.selectedDate.deselect();
|
||||
$(td).selectElement();
|
||||
document.selectedDate = td;
|
||||
var elements = $(div).select("TD.activeDay SPAN");
|
||||
if (elements.size()) {
|
||||
var day = elements[0].readAttribute('day');
|
||||
if (day.substr(0, 6) == currentDay.substr(0, 6)) {
|
||||
for (var i = 0; i < elements.length; i++) {
|
||||
day = elements[i].readAttribute('day');
|
||||
if (day && day == currentDay) {
|
||||
var td = $(elements[i]).getParentWithTagName("td");
|
||||
if (document.selectedDate)
|
||||
document.selectedDate.deselect();
|
||||
$(td).selectElement();
|
||||
document.selectedDate = td;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -910,7 +904,7 @@ function changeCalendarDisplay(data, newView) {
|
||||
// Deselect day in date selector
|
||||
if (document.selectedDate)
|
||||
document.selectedDate.deselect();
|
||||
|
||||
|
||||
// Select day in date selector
|
||||
var selectedLink = $$('table#dateSelectorTable span[day='+day+']');
|
||||
if (selectedLink.length > 0) {
|
||||
@@ -918,7 +912,7 @@ function changeCalendarDisplay(data, newView) {
|
||||
$(selectedCell).selectElement();
|
||||
document.selectedDate = selectedCell;
|
||||
}
|
||||
|
||||
|
||||
// Scroll to event
|
||||
if (scrollEvent) {
|
||||
preventAutoScroll = false;
|
||||
|
||||
Reference in New Issue
Block a user