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:
Wolfgang Sourdeau
2006-08-14 20:32:30 +00:00
parent d0499620df
commit 7b4c1ac29d
6 changed files with 91 additions and 11 deletions
-9
View File
@@ -1,9 +0,0 @@
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 */
}
+17
View File
@@ -372,3 +372,20 @@ DIV#mailboxDragHandle
right: 0px;
height: .4em;
}
DIV.contactSelector
{
position: absolute;
top: 0px;
bottom: 3em;
right: 0px;
left: 0px;
}
DIV.contactSelection
{
position: absolute;
height: 2.5em;
bottom: 0px;
right: 1em;
}
+27
View File
@@ -808,3 +808,30 @@ function onSearchKeyDown(searchValue)
searchValue.timer = setTimeout("onSearchFormSubmit()", 1000);
}
function onConfirmContactSelection()
{
var rows = collectSelectedRows();
var folderLi = document.getElementById(currentContactFolder);
var currentContactFolderName = folderLi.innerHTML;
for (i = 0; i < rows.length; i++)
{
var row = document.getElementById(rows[i]);
// opener.window.log (rows[i] + " selected.");
// opener.window.log (row.cells.length);
var cid = row.getAttribute("contactid");
if (cid)
{
var cname = '' + row.getAttribute("contactname");
opener.window.log('cid = ' + cid + '; cname = ' + cname );
if (cid.length > 0)
opener.window.addContact(contactSelectorId,
cid,
currentContactFolderName + '/' + cname);
}
}
return false;
}
+2 -2
View File
@@ -225,9 +225,9 @@ function openAnais(sender) {
function openAddressbook(sender) {
var urlstr;
urlstr = "addressbook";
urlstr = ApplicationBaseURL + "/../Contacts/select";
var w = window.open(urlstr, "Addressbook",
"width=600,height=400,left=10,top=10,toolbar=no," +
"width=640,height=400,left=10,top=10,toolbar=no," +
"dependent=yes,menubar=no,location=no,resizable=yes," +
"scrollbars=yes,directories=no,status=no");
w.focus();
+35
View File
@@ -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;
}
@@ -91,3 +91,13 @@ function validateAptEditor() {
return true;
}
function submitMeeting(thisForm) {
var action = document.getElementById('jsaction');
action.setAttribute("name", "save:method");
action.setAttribute("value", "save");
thisForm.submit();
opener.window.location.reload();
window.close();
}