Monotone-Parent: 231d69c17fecf43faebd441edcb66ac311ce13cc
Monotone-Revision: 8f65beadcc1e7b9ad497e77aa7000a7b03cb83cf Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-05-28T21:30:37 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
dd86823989
commit
09ff46ef4d
|
@ -230,7 +230,7 @@ function displayAppointment(event) {
|
||||||
_editEventId(this.getAttribute("aptCName"),
|
_editEventId(this.getAttribute("aptCName"),
|
||||||
this.getAttribute("owner"));
|
this.getAttribute("owner"));
|
||||||
|
|
||||||
event.preventDefault();
|
preventDefault(event);
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.cancelBubble = true;
|
event.cancelBubble = true;
|
||||||
event.returnValue = false;
|
event.returnValue = false;
|
||||||
|
@ -628,7 +628,7 @@ function onHeaderClick(event) {
|
||||||
// log("onHeaderClick: " + this.link);
|
// log("onHeaderClick: " + this.link);
|
||||||
_loadAppointmentHref(this.link);
|
_loadAppointmentHref(this.link);
|
||||||
|
|
||||||
event.preventDefault();
|
preventDefault(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
function refreshAppointments() {
|
function refreshAppointments() {
|
||||||
|
@ -657,7 +657,8 @@ function onListFilterChange() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAppointmentClick(event) {
|
function onAppointmentClick(event) {
|
||||||
var node = event.target.getParentWithTagName("tr");
|
var target = getTarget(event);
|
||||||
|
var node = target.getParentWithTagName("tr");
|
||||||
var day = node.getAttribute("day");
|
var day = node.getAttribute("day");
|
||||||
var hour = node.getAttribute("hour");
|
var hour = node.getAttribute("hour");
|
||||||
|
|
||||||
|
@ -858,7 +859,7 @@ function updateCalendarStatus(event) {
|
||||||
|
|
||||||
var nodes = $("calendarList").childNodesWithTag("li");
|
var nodes = $("calendarList").childNodesWithTag("li");
|
||||||
for (var i = 0; i < nodes.length; i++) {
|
for (var i = 0; i < nodes.length; i++) {
|
||||||
var input = nodes[i].childNodesWithTag("input")[0];
|
var input = $(nodes[i]).childNodesWithTag("input")[0];
|
||||||
if (input.checked) {
|
if (input.checked) {
|
||||||
var folderId = nodes[i].getAttribute("id");
|
var folderId = nodes[i].getAttribute("id");
|
||||||
var elems = folderId.split(":");
|
var elems = folderId.split(":");
|
||||||
|
@ -921,10 +922,10 @@ function calendarEntryCallback(http) {
|
||||||
input.disabled = disabled;
|
input.disabled = disabled;
|
||||||
if (disabled) {
|
if (disabled) {
|
||||||
input.checked = false;
|
input.checked = false;
|
||||||
entry.addClassName("denied");
|
$(entry).addClassName("denied");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
entry.removeClassName("denied");
|
$(entry).removeClassName("denied");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1044,7 +1045,7 @@ function initCalendarSelector() {
|
||||||
var list = $("calendarList").childNodesWithTag("li");
|
var list = $("calendarList").childNodesWithTag("li");
|
||||||
for (var i = 0; i < list.length; i++) {
|
for (var i = 0; i < list.length; i++) {
|
||||||
var input = list[i].childNodesWithTag("input")[0];
|
var input = list[i].childNodesWithTag("input")[0];
|
||||||
Event.observe(input, "change", updateCalendarStatus);
|
Event.observe(input, "change", updateCalendarStatus.bindAsEventListener(input));
|
||||||
Event.observe(list[i], "mousedown", listRowMouseDownHandler);
|
Event.observe(list[i], "mousedown", listRowMouseDownHandler);
|
||||||
Event.observe(list[i], "click", onRowClick);
|
Event.observe(list[i], "click", onRowClick);
|
||||||
}
|
}
|
||||||
|
@ -1057,7 +1058,7 @@ function initCalendarSelector() {
|
||||||
function onCalendarAdd(event) {
|
function onCalendarAdd(event) {
|
||||||
openUserFolderSelector(onFolderSubscribeCB, "calendar");
|
openUserFolderSelector(onFolderSubscribeCB, "calendar");
|
||||||
|
|
||||||
event.preventDefault();
|
preventDefault(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
function appendCalendar(folderName, folder) {
|
function appendCalendar(folderName, folder) {
|
||||||
|
@ -1079,8 +1080,8 @@ function appendCalendar(folderName, folder) {
|
||||||
colorBox.appendChild(document.createTextNode("OO"));
|
colorBox.appendChild(document.createTextNode("OO"));
|
||||||
colorBox.addClassName("colorBox");
|
colorBox.addClassName("colorBox");
|
||||||
if (color) {
|
if (color) {
|
||||||
colorBox.style.color = color + ";";
|
colorBox.setStyle({ color: color,
|
||||||
colorBox.style.backgroundColor = color + ";";
|
backgroundColor: color });
|
||||||
}
|
}
|
||||||
li.appendChild(colorBox);
|
li.appendChild(colorBox);
|
||||||
li.appendChild(document.createTextNode(" " + folderName));
|
li.appendChild(document.createTextNode(" " + folderName));
|
||||||
|
@ -1121,7 +1122,7 @@ function onCalendarRemove(event) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
event.preventDefault();
|
preventDefault(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
function configureSearchField() {
|
function configureSearchField() {
|
||||||
|
@ -1144,4 +1145,4 @@ function initCalendars() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
addEvent(window, 'DOMContentLoaded', initCalendars);
|
addEvent(window, 'load', initCalendars);
|
||||||
|
|
Loading…
Reference in a new issue