mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 17:58:51 +00:00
Monotone-Parent: 38a512204cb4c49fbc144379e8587aaea3394a3a
Monotone-Revision: 62820f08c88e6bd9bf5b0d9c61b83fb3d1a337e8 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-08-25T19:13:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -31,13 +31,6 @@ function newEvent(sender, type) {
|
||||
var hour = sender.readAttribute("hour");
|
||||
var folder = getSelectedFolder();
|
||||
var folderID = folder.readAttribute("id");
|
||||
var roles = folder.readAttribute("roles");
|
||||
if (roles) {
|
||||
roles = roles.split(",")
|
||||
if ($(roles).indexOf("Owner") < 0 &&
|
||||
$(roles).indexOf("PublicModifier") < 0)
|
||||
folderID = "/personal";
|
||||
}
|
||||
var urlstr = ApplicationBaseURL + folderID + "/new" + type;
|
||||
var params = [];
|
||||
if (day)
|
||||
@@ -45,7 +38,7 @@ function newEvent(sender, type) {
|
||||
if (hour)
|
||||
params.push("hm=" + hour);
|
||||
if (params.length > 0)
|
||||
urlstr += "?" + params.join("&"); log("newEvent: " + urlstr);
|
||||
urlstr += "?" + params.join("&");
|
||||
window.open(urlstr, "", "width=490,height=470,resizable=0");
|
||||
|
||||
return false; /* stop following the link */
|
||||
|
||||
Reference in New Issue
Block a user