mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 02:52:43 +00:00
Monotone-Parent: 073db33d7e59d47a6e90ddb5e637b426e901a649
Monotone-Revision: e49002b89db3022e5f7f6b741a46f8cc67f4d398 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-15T00:53:59 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -448,6 +448,10 @@ function scrollDayView(hour)
|
||||
daysView.parentNode.scrollTop = hours[rowNumber + 1].offsetTop;
|
||||
}
|
||||
|
||||
function onClickableCellsDblClick(event) {
|
||||
newEvent(this, 'event');
|
||||
}
|
||||
|
||||
function calendarDisplayCallback(http)
|
||||
{
|
||||
var div = $("calendarView");
|
||||
@@ -474,8 +478,15 @@ function calendarDisplayCallback(http)
|
||||
appointments[i].addEventListener("dblclick", displayAppointment, true);
|
||||
}
|
||||
var days = document.getElementsByClassName("day", daysView);
|
||||
for (var i = 0; i < days.length; i++)
|
||||
for (var i = 0; i < days.length; i++) {
|
||||
days[i].addEventListener("click", onCalendarSelectDay, true);
|
||||
var clickableCells = document.getElementsByClassName("clickableHourCell",
|
||||
days[i]);
|
||||
for (var j = 0; j < clickableCells.length; j++) {
|
||||
clickableCells[j].addEventListener("dblclick",
|
||||
onClickableCellsDblClick, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
log ("ajax fuckage");
|
||||
@@ -707,8 +718,7 @@ function onSearchFormSubmit()
|
||||
return false;
|
||||
}
|
||||
|
||||
function onCalendarSelectAppointment(event)
|
||||
{
|
||||
function onCalendarSelectAppointment(event) {
|
||||
var list = $("appointmentsList");
|
||||
list.deselectAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user