mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-15 13:24:54 +00:00
SoObjects/Appointments/GNUmakefile
Monotone-Parent: 18c8420c0a0c752ea4dd761f934a473b321568f8 Monotone-Revision: b2699a981cd5458fbd1da1a9a72992020a29a4fc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-12-14T21:20:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -149,10 +149,10 @@ function sanitizeMailTo(dirtyMailTo) {
|
||||
}
|
||||
|
||||
function openMailComposeWindow(url) {
|
||||
w = window.open(url, null,
|
||||
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0,"
|
||||
+ "location=0,directories=0,status=0,menubar=0"
|
||||
+ ",copyhistory=0");
|
||||
var w = window.open(url, null,
|
||||
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0,"
|
||||
+ "location=0,directories=0,status=0,menubar=0"
|
||||
+ ",copyhistory=0");
|
||||
w.focus();
|
||||
|
||||
return w;
|
||||
@@ -367,6 +367,7 @@ function acceptMultiSelect(node) {
|
||||
|
||||
function onRowClick(event) {
|
||||
var node = event.target;
|
||||
|
||||
if (node.tagName == 'TD')
|
||||
node = node.parentNode;
|
||||
|
||||
@@ -754,17 +755,17 @@ function initCriteria()
|
||||
function onContactAdd(node)
|
||||
{
|
||||
var selector = null;
|
||||
var selectorUrl = '?popup=YES';
|
||||
var selectorURL = '?popup=YES';
|
||||
if (node) {
|
||||
selector = node.parentNode.parentNode;
|
||||
selectorUrl += ("&selectorId=" + selector.getAttribute("id"));
|
||||
selectorURL += ("&selectorId=" + selector.getAttribute("id"));
|
||||
}
|
||||
|
||||
urlstr = ApplicationBaseURL;
|
||||
if (urlstr[urlstr.length-1] != '/')
|
||||
urlstr += '/';
|
||||
urlstr += ("../../" + UserLogin + "/Contacts/"
|
||||
+ contactSelectorAction + selectorUrl);
|
||||
+ contactSelectorAction + selectorURL);
|
||||
// log (urlstr);
|
||||
var w = window.open(urlstr, "Addressbook",
|
||||
"width=640,height=400,resizable=1,scrollbars=0");
|
||||
@@ -834,15 +835,45 @@ function initTabs()
|
||||
}
|
||||
}
|
||||
|
||||
function initMenusNamed(menuDivNames) {
|
||||
for (var i = 0; i < menuDivNames.length; i++) {
|
||||
var menuDIV = $(menuDivNames[i]);
|
||||
if (menuDIV)
|
||||
initMenu(menuDIV);
|
||||
else
|
||||
log("menu named '" + menuDivNames[i] + "' not found");
|
||||
}
|
||||
}
|
||||
|
||||
function initMenu(menuDIV) {
|
||||
var lis = menuDIV.childNodesWithTag("ul")[0].childNodesWithTag("li");
|
||||
for (var j = 0; j < lis.length; j++)
|
||||
lis[j].addEventListener("mousedown", listRowMouseDownHandler, false);
|
||||
var subMenus = menuDIV.childNodesWithTag("div");
|
||||
for (var i = 0; i < subMenus.length; i++)
|
||||
initMenu(subMenus[i]);
|
||||
}
|
||||
|
||||
function onTabMouseDown(event) {
|
||||
event.cancelBubble = true;
|
||||
return false;
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
function openExternalLink(anchor) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function openAclWindow(url, objectTitle) {
|
||||
var w = window.open(url, "aclWindow",
|
||||
"width=300,height=300,resizable=1,scrollbars=1,toolbar=0,"
|
||||
+ "location=0,directories=0,status=0,menubar=0"
|
||||
+ ",copyhistory=0");
|
||||
w.focus();
|
||||
w.title = "Poil: " + objectTitle;
|
||||
|
||||
return w;
|
||||
}
|
||||
|
||||
function onTabClick(event) {
|
||||
var node = event.target;
|
||||
|
||||
@@ -932,7 +963,10 @@ function indexColor(number) {
|
||||
var onLoadHandler = {
|
||||
handleEvent: function (event) {
|
||||
queryParameters = parseQueryParameters('' + window.location);
|
||||
initLogConsole();
|
||||
if (!document.body.hasClassName("popup")) {
|
||||
initLogConsole();
|
||||
initializeMenus();
|
||||
}
|
||||
initTabs();
|
||||
configureDragHandles();
|
||||
configureSortableTableHeaders();
|
||||
@@ -960,6 +994,14 @@ function onLinkBannerClick() {
|
||||
checkAjaxRequestsState();
|
||||
}
|
||||
|
||||
function onRightsAdministrationClick(event) {
|
||||
var url = ApplicationBaseURL;
|
||||
if (!url)
|
||||
url = UserFolderURL;
|
||||
openAclWindow(url+ "/acls");
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
function configureLinkBanner() {
|
||||
var linkBanner = $("linkBanner");
|
||||
if (linkBanner) {
|
||||
@@ -969,6 +1011,7 @@ function configureLinkBanner() {
|
||||
false);
|
||||
anchors[i].addEventListener("click", onLinkBannerClick, false);
|
||||
}
|
||||
anchors[4].addEventListener("click", onRightsAdministrationClick, false);
|
||||
if (anchors.length > 6)
|
||||
anchors[6].addEventListener("click", toggleLogConsole, true);
|
||||
}
|
||||
@@ -980,6 +1023,9 @@ window.addEventListener("load", onLoadHandler, false);
|
||||
function configureDragHandles() {
|
||||
}
|
||||
|
||||
function initializeMenus() {
|
||||
}
|
||||
|
||||
function onHeaderClick(event) {
|
||||
window.alert("generic headerClick");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user