mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Monotone-Parent: 029f7af5879a2c5f2514bdae82805853dc8624b0
Monotone-Revision: 36c59ea6f5d3705bff60a615e113d6b9e7a7501e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-26T01:15:26 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1054,6 +1054,7 @@ function appendCalendar(folderName, folder) {
|
||||
checkBox.type = "checkbox";
|
||||
checkBox.addEventListener("change", updateCalendarStatus, false);
|
||||
li.appendChild(checkBox);
|
||||
li.appendChild(document.createTextNode(" "));
|
||||
var colorBox = document.createElement("div");
|
||||
colorBox.appendChild(document.createTextNode("OO"));
|
||||
colorBox.addClassName("colorBox");
|
||||
@@ -1068,6 +1069,10 @@ function appendCalendar(folderName, folder) {
|
||||
|
||||
var contactId = folder.split(":")[0];
|
||||
var styles = document.getElementsByTagName("style");
|
||||
|
||||
var url = URLForFolderID(folder) + "/canAccessContent";
|
||||
triggerAjaxRequest(url, calendarEntryCallback, folder);
|
||||
|
||||
styles[0].innerHTML += ('.ownerIs' + contactId + ' {'
|
||||
+ ' background-color: '
|
||||
+ color
|
||||
|
||||
@@ -78,9 +78,8 @@ function onChangeCalendar(event) {
|
||||
else
|
||||
ownerLogin = UserLogin;
|
||||
urlElems[urlElems.length-4] = ownerLogin;
|
||||
|
||||
|
||||
form.setAttribute("action", urlElems.join("/"));
|
||||
log ("after: " + form.getAttribute("action"));
|
||||
}
|
||||
|
||||
function refreshAttendees() {
|
||||
@@ -153,5 +152,9 @@ function onComponentEditorLoad(event) {
|
||||
initializeAttendeesHref();
|
||||
initializeDocumentHref();
|
||||
initializePrivacyMenu();
|
||||
$("calendarList").addEventListener("change", onChangeCalendar, false);
|
||||
var list = $("calendarList");
|
||||
list.addEventListener("change", onChangeCalendar, false);
|
||||
var onSelectionChangeEvent = document.createEvent("Event");
|
||||
onSelectionChangeEvent.initEvent("change", false, false);
|
||||
list.dispatchEvent(onSelectionChangeEvent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user