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;
|
||||
|
||||
calendars = [[self calendarList] valueForKey: @"folder"];
|
||||
calendars = [[self calendarList] valueForKey: @"nameInContainer"];
|
||||
|
||||
return [calendars componentsJoinedByString: @","];
|
||||
}
|
||||
|
|
|
@ -74,13 +74,7 @@ function onChangeCalendar(event) {
|
|||
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;
|
||||
|
||||
urlElems[urlElems.length-3] = choice;
|
||||
form.setAttribute("action", urlElems.join("/"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue