mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 15:45:26 +00:00
Monotone-Parent: af42c1c664398cffa5afdc484683fb326e291b6e
Monotone-Revision: 38a512204cb4c49fbc144379e8587aaea3394a3a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-22T12:08:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -34,7 +34,8 @@ function newEvent(sender, type) {
|
||||
var roles = folder.readAttribute("roles");
|
||||
if (roles) {
|
||||
roles = roles.split(",")
|
||||
if ($(roles).indexOf("PublicModifier") < 0)
|
||||
if ($(roles).indexOf("Owner") < 0 &&
|
||||
$(roles).indexOf("PublicModifier") < 0)
|
||||
folderID = "/personal";
|
||||
}
|
||||
var urlstr = ApplicationBaseURL + folderID + "/new" + type;
|
||||
@@ -44,7 +45,7 @@ function newEvent(sender, type) {
|
||||
if (hour)
|
||||
params.push("hm=" + hour);
|
||||
if (params.length > 0)
|
||||
urlstr += "?" + params.join("&");
|
||||
urlstr += "?" + params.join("&"); log("newEvent: " + urlstr);
|
||||
window.open(urlstr, "", "width=490,height=470,resizable=0");
|
||||
|
||||
return false; /* stop following the link */
|
||||
|
||||
Reference in New Issue
Block a user