Monotone-Parent: feca1919ae107b140918af5831c9094fd2ceb325
Monotone-Revision: 96effe6b8b81620e6321b228cbab54c6d0ff3555 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-09-19T20:00:10 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
5b7599797c
commit
80da504636
|
@ -358,7 +358,7 @@
|
||||||
{
|
{
|
||||||
NSArray *calendars;
|
NSArray *calendars;
|
||||||
|
|
||||||
calendars = [[self calendarList] valueForKey: @"folder"];
|
calendars = [[self calendarList] valueForKey: @"nameInContainer"];
|
||||||
|
|
||||||
return [calendars componentsJoinedByString: @","];
|
return [calendars componentsJoinedByString: @","];
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,13 +74,7 @@ function onChangeCalendar(event) {
|
||||||
var form = document.forms["editform"];
|
var form = document.forms["editform"];
|
||||||
var urlElems = form.getAttribute("action").split("/");
|
var urlElems = form.getAttribute("action").split("/");
|
||||||
var choice = calendars[this.value];
|
var choice = calendars[this.value];
|
||||||
var ownerLogin;
|
urlElems[urlElems.length-3] = choice;
|
||||||
if (choice.indexOf(":") > -1)
|
|
||||||
ownerLogin = choice.split(":")[0];
|
|
||||||
else
|
|
||||||
ownerLogin = UserLogin;
|
|
||||||
urlElems[urlElems.length-4] = ownerLogin;
|
|
||||||
|
|
||||||
form.setAttribute("action", urlElems.join("/"));
|
form.setAttribute("action", urlElems.join("/"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue