mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-11 18:01:23 +00:00
Monotone-Parent: ea72255819157346b8579f8e17c6e9fb6c5c0d34
Monotone-Revision: a1294497e9f6ed0ee90d2f695f0735f2eb1ced11 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-10T21:44:25 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -70,10 +70,18 @@ function onMenuSetClassification(event) {
|
||||
function onChangeCalendar(event) {
|
||||
var calendars = $("calendarFoldersList").value.split(",");
|
||||
var form = document.forms["editform"];
|
||||
var urlElems = form.getAttribute("action").split("/");
|
||||
var urlElems = form.getAttribute("action").split("?");
|
||||
var choice = calendars[this.value];
|
||||
urlElems[urlElems.length-3] = choice;
|
||||
form.setAttribute("action", urlElems.join("/"));
|
||||
var urlParam = "moveToCalendar=" + choice;
|
||||
if (urlElems.length == 1)
|
||||
urlElems.push(urlParam);
|
||||
else
|
||||
urlElems[2] = urlParam;
|
||||
|
||||
while (urlElems.length > 2)
|
||||
urlElems.pop();
|
||||
|
||||
form.setAttribute("action", urlElems.join("?"));
|
||||
}
|
||||
|
||||
function initializeDocumentHref() {
|
||||
@@ -111,9 +119,7 @@ function onComponentEditorLoad(event) {
|
||||
initializeDocumentHref();
|
||||
initializePrivacyMenu();
|
||||
var list = $("calendarList");
|
||||
list.observe("mousedown",
|
||||
onChangeCalendar.bindAsEventListener(list),
|
||||
false);
|
||||
list.observe("change", onChangeCalendar, false);
|
||||
list.fire("mousedown");
|
||||
|
||||
var menuItems = $("itemPrivacyList").childNodesWithTag("li");
|
||||
|
||||
Reference in New Issue
Block a user