Monotone-Parent: e2a18177cfa0a03cb838fca1581f5c9280c9ed72
Monotone-Revision: 6eb24ecac0894c6a3b2d8bc94ea23f4969e9a03d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-15T22:27:59 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
61212215da
commit
2bcca3a693
|
@ -42,7 +42,7 @@ var currentContactFolder = '';
|
|||
function openContactWindow(sender, contactuid, url) {
|
||||
log ("message window at url: " + url);
|
||||
var msgWin = window.open(url, "SOGo_msg_" + contactuid,
|
||||
"width=640,height=480,resizable=1,scrollbars=1,toolbar=0," +
|
||||
"width=546,height=490,resizable=1,scrollbars=1,toolbar=0," +
|
||||
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
||||
|
||||
msgWin.focus();
|
||||
|
@ -607,3 +607,7 @@ function onConfirmContactSelection()
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
function onContactMailTo(node) {
|
||||
return openMailTo(node.innerHTML);
|
||||
}
|
||||
|
|
|
@ -822,18 +822,7 @@ function newContactFromEmail(sender) {
|
|||
}
|
||||
|
||||
function newEmailTo(sender) {
|
||||
var mailto = sanitizeMailTo(sender.parentNode.parentNode.menuTarget.innerHTML);
|
||||
|
||||
if (mailto.length > 0)
|
||||
{
|
||||
w = window.open("compose?mailto=" + mailto,
|
||||
"SOGo_compose",
|
||||
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0," +
|
||||
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
||||
w.focus();
|
||||
}
|
||||
|
||||
return false; /* stop following the link */
|
||||
return openMailTo(sender.parentNode.parentNode.menuTarget.innerHTML);
|
||||
}
|
||||
|
||||
function expandUpperTree(node)
|
||||
|
|
|
@ -81,3 +81,22 @@ function validateContactEditor() {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
function submitContact(thisForm) {
|
||||
var action = document.getElementById('jsaction');
|
||||
action.setAttribute("name", "save:method");
|
||||
action.setAttribute("value", "save");
|
||||
|
||||
window.opener.log ("form: " + thisForm);
|
||||
|
||||
window.opener.log ("validating...");
|
||||
if (validateContactEditor()) {
|
||||
window.opener.log ("submitting");
|
||||
thisForm.submit();
|
||||
window.opener.log ("setting timeout...");
|
||||
window.opener.setTimeout('refreshAppointments();', 200);
|
||||
window.opener.log ("we close...");
|
||||
window.close();
|
||||
window.opener.log ("closed");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,6 +146,21 @@ function sanitizeMailTo(dirtyMailTo) {
|
|||
return mailto;
|
||||
}
|
||||
|
||||
function openMailTo(senderMailto) {
|
||||
var mailto = sanitizeMailTo(senderMailto);
|
||||
|
||||
if (mailto.length > 0)
|
||||
{
|
||||
w = window.open(ApplicationBaseURL + "/../Mail/compose?mailto=" + mailto,
|
||||
"SOGo_compose",
|
||||
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0," +
|
||||
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
||||
w.focus();
|
||||
}
|
||||
|
||||
return false; /* stop following the link */
|
||||
}
|
||||
|
||||
function createHTTPClient() {
|
||||
// http://developer.apple.com/internet/webcontent/xmlhttpreq.html
|
||||
if (typeof XMLHttpRequest != "undefined")
|
||||
|
@ -965,6 +980,10 @@ function onTabMouseDown(event) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function openExternalLink(anchor) {
|
||||
return false;
|
||||
}
|
||||
|
||||
function onTabClick(event) {
|
||||
var node = event.target;
|
||||
|
||||
|
|
Loading…
Reference in a new issue