mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-25 14:59:30 +00:00
Monotone-Parent: 487cdad3dbd4c7d9c8e79989636b26cefcde1b80
Monotone-Revision: 7d00dc40e4703750dc10ef05910f0c4d9a7162fb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-02T19:27:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -67,6 +67,22 @@ function onMenuSetClassification(event, classification) {
|
||||
privacyInput.value = classification;
|
||||
}
|
||||
|
||||
function onChangeCalendar(event) {
|
||||
var calendars = $("calendarFoldersList").value.split(",");
|
||||
var form = document.forms["editform"];
|
||||
var urlElems = form.getAttribute("action").split("/");
|
||||
var choice = calendars[this.value];
|
||||
var ownerLogin;
|
||||
if (choice.indexOf(":") > -1)
|
||||
ownerLogin = choice.split(":")[0];
|
||||
else
|
||||
ownerLogin = UserLogin;
|
||||
urlElems[urlElems.length-4] = ownerLogin;
|
||||
|
||||
form.setAttribute("action", urlElems.join("/"));
|
||||
log ("after: " + form.getAttribute("action"));
|
||||
}
|
||||
|
||||
function refreshAttendees() {
|
||||
var attendeesLabel = $("attendeesLabel");
|
||||
var attendeesNames = $("attendeesNames");
|
||||
@@ -137,4 +153,5 @@ function onComponentEditorLoad(event) {
|
||||
initializeAttendeesHref();
|
||||
initializeDocumentHref();
|
||||
initializePrivacyMenu();
|
||||
$("calendarList").addEventListener("change", onChangeCalendar, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user