mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-27 13:08:54 +00:00
Monotone-Parent: 77a448cff64353c09e0f8a786ad2aab1113b3a74
Monotone-Revision: 1e9037357870d127edf32b09b2001df2dd5df26f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-03-28T14:47:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
90889142a0
commit
06277b4ce9
1 file changed
+19
-17
@@ -510,11 +510,11 @@ function onConfirmContactSelection(event) {
|
|||||||
var initialValues = null;
|
var initialValues = null;
|
||||||
|
|
||||||
if (selector) {
|
if (selector) {
|
||||||
var selectorId = selector.getAttribute("id");
|
var selectorId = selector.getAttribute("id");
|
||||||
selectorList = opener.window.document.getElementById('uixselector-'
|
selectorList = opener.window.document.getElementById('uixselector-'
|
||||||
+ selectorId
|
+ selectorId
|
||||||
+ '-uidList');
|
+ '-uidList');
|
||||||
initialValues = selectorList.value;
|
initialValues = selectorList.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
var contactsList = $("contactsList");
|
var contactsList = $("contactsList");
|
||||||
@@ -718,10 +718,12 @@ function deniedFoldersLookupCallback(http) {
|
|||||||
|
|
||||||
function configureAbToolbar() {
|
function configureAbToolbar() {
|
||||||
var toolbar = $("abToolbar");
|
var toolbar = $("abToolbar");
|
||||||
var links = toolbar.childNodesWithTag("a");
|
if (toolbar) {
|
||||||
Event.observe(links[0], "click", onAddressBookNew, false);
|
var links = toolbar.childNodesWithTag("a");
|
||||||
Event.observe(links[1], "click", onAddressBookAdd, false);
|
links[0].observe("click", onAddressBookNew);
|
||||||
Event.observe(links[2], "click", onAddressBookRemove, false);
|
links[1].observe("click", onAddressBookAdd);
|
||||||
|
links[2].observe("click", onAddressBookRemove);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function configureContactFolders() {
|
function configureContactFolders() {
|
||||||
@@ -858,18 +860,18 @@ function getMenus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function configureSelectionButtons() {
|
function configureSelectionButtons() {
|
||||||
var container = $("contactSelectionButtons");
|
var container = $("contactSelectionButtons");
|
||||||
if (container) {
|
if (container) {
|
||||||
var buttons = container.childNodesWithTag("input");
|
var buttons = container.childNodesWithTag("input");
|
||||||
for (var i = 0; i < buttons.length; i++)
|
for (var i = 0; i < buttons.length; i++)
|
||||||
Event.observe(buttons[i], "click",
|
$(buttons[i]).observe("click",
|
||||||
onConfirmContactSelection.bindAsEventListener(buttons[i]));
|
onConfirmContactSelection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function initContacts(event) {
|
function initContacts(event) {
|
||||||
if (document.body.hasClassName("popup"))
|
if (document.body.hasClassName("popup"))
|
||||||
configureSelectionButtons();
|
configureSelectionButtons();
|
||||||
configureAbToolbar();
|
configureAbToolbar();
|
||||||
configureContactFolders();
|
configureContactFolders();
|
||||||
// initDnd();
|
// initDnd();
|
||||||
|
|||||||
Reference in new issue
Block a user