mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-04 06:36:24 +00:00
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:
@@ -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("/"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user