From 197bd32ebd501fa026e367a7fb3a5bf0bc7c48a2 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 13 Oct 2006 23:36:15 +0000 Subject: [PATCH] Monotone-Parent: 1e97b12194e5cae80c0311c2b27ce13e9d77c030 Monotone-Revision: 6ef1ca9d6e10e432ed38b2ce42522158be759f0b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-13T23:36:15 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ UI/WebServerResources/ContactsUI.js | 20 +++++++++++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 325e2ee51..9e77252cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-13 Wolfgang Sourdeau + * 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. diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index 32e9b82a4..da8f23f75 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -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; }