Monotone-Parent: 1e97b12194e5cae80c0311c2b27ce13e9d77c030

Monotone-Revision: 6ef1ca9d6e10e432ed38b2ce42522158be759f0b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-13T23:36:15
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-13 23:36:15 +00:00
parent e8e6b4775f
commit 197bd32ebd
2 changed files with 20 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
2006-10-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/WebServerResources/ContactsUI.js: added handling of
notification of changes to contact selectors.
* UI/WebServerResources/generic.js: added handling of notification
of changes to contact selectors.

View File

@@ -38,9 +38,7 @@ var currentContactFolder = '';
/* mail list */
function openContactWindow(sender, url) {
var msgWin = window.open(url, null,
"width=544,height=525,resizable=1,scrollbars=1,toolbar=0,"
+ "location=0,directories=0,status=0,menubar=0,copyhistory=0");
var msgWin = window.open(url, null, "width=544,height=525");
msgWin.focus();
}
@@ -442,6 +440,18 @@ function onConfirmContactSelection(tag)
{
var folderLi = $(currentContactFolder);
var currentContactFolderName = folderLi.innerHTML;
var selectorList = null;
var initialValues = null;
if (selector)
{
var selectorId = selector.getAttribute("id");
selectorList = opener.window.document.getElementById('uixselector-'
+ selectorId
+ '-uidList');
initialValues = selectorList.value;
log("values: " + initialValues);
}
var contactsList = $('contactsList');
var rows = contactsList.getSelectedRows();
@@ -454,6 +464,10 @@ function onConfirmContactSelection(tag)
cid, cname, email);
}
if (selector && selector.changeNotification
&& selectorList.value != initialValues)
selector.changeNotification();
return false;
}