2006-08-14 22:32:30 +02:00
|
|
|
function newEvent(sender) {
|
2006-08-15 22:52:23 +02:00
|
|
|
var urlstr = ApplicationBaseURL + "new";
|
|
|
|
|
2006-08-14 22:32:30 +02:00
|
|
|
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 */
|
|
|
|
}
|
|
|
|
|
2006-08-15 22:52:23 +02:00
|
|
|
function displayAppointment(sender) {
|
|
|
|
var aptId = sender.getAttribute("aptId");
|
|
|
|
var urlstr = ApplicationBaseURL + aptId + "/view";
|
|
|
|
|
|
|
|
var win = window.open(urlstr, "SOGo_view_" + aptId,
|
|
|
|
"width=680,height=520,resizable=1,scrollbars=1,toolbar=0," +
|
|
|
|
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
|
|
|
win.focus();
|
|
|
|
|
|
|
|
return false; /* stop following the link */
|
|
|
|
}
|
|
|
|
|
2006-08-14 22:32:30 +02:00
|
|
|
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;
|
|
|
|
}
|