mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 07:35:39 +00:00
Monotone-Parent: 29276051aae3738adb5fbfa6b52ffbc6eb8f3968
Monotone-Revision: 326d1c3e09ab40b1884b684c1cfb0feca9ae3c0d Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-14T20:32:30 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
function newEvent(sender) {
|
||||
var urlstr;
|
||||
|
||||
urlstr = "new";
|
||||
window.open(urlstr, "SOGo_compose",
|
||||
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0," +
|
||||
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
||||
return false; /* stop following the link */
|
||||
}
|
||||
|
||||
function onContactRefresh(node)
|
||||
{
|
||||
var parentNode = node.parentNode;
|
||||
var contacts = '';
|
||||
var done = false;
|
||||
|
||||
var currentNode = parentNode.firstChild;
|
||||
while (currentNode && !done)
|
||||
{
|
||||
if (currentNode.nodeType == 1
|
||||
&& currentNode.getAttribute("type") == "hidden")
|
||||
{
|
||||
contacts = currentNode.value;
|
||||
done = true;
|
||||
}
|
||||
else
|
||||
currentNode = currentNode.nextSibling;
|
||||
}
|
||||
|
||||
log ('contacts: ' + contacts);
|
||||
if (contacts.length > 0)
|
||||
window.location = ApplicationBaseURL + '/show?userUIDString=' + contacts;
|
||||
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user