From 29f8ab0852f38b9888bab7940b13cfd61f84560f Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 3 Oct 2006 14:38:51 +0000 Subject: [PATCH] Monotone-Parent: 9b4c2eadc3d38aa14dc504c80d606df816c2f924 Monotone-Revision: 0df73c55c83973b5088ccb3350d103006525098c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-03T14:38:51 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++ UI/WebServerResources/UIxMailEditor.js | 75 +++++++++++++++++++-- UI/WebServerResources/UIxMailToSelection.js | 17 +---- 3 files changed, 76 insertions(+), 20 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3e5534552..3d4a49af9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-10-03 Wolfgang Sourdeau + * UI/WebServerResources/UIxMailEditor.js: add support for + additions of different types (to, cc, bcc) of recipients from the + address book. + * UI/Common/UIxPageFrame.m ([UIxPageFrame -doctype]): added the " -1) + isRecipient = true; + else + { + counter++; + currentRow = $('row_' + counter); + } + } + + return isRecipient; +} + +function insertContact(inputNode, contactName, contactEmail) { + var value = '' + inputNode.value; + + var newContact = contactName; + if (newContact.length > 0) + newContact += ' <' + contactEmail + '>'; + else + newContact = contactEmail; + + if (value.length > 0) + value += ", "; + value += newContact; + + inputNode.value = value; } diff --git a/UI/WebServerResources/UIxMailToSelection.js b/UI/WebServerResources/UIxMailToSelection.js index 38b6f5c8e..b0277b542 100644 --- a/UI/WebServerResources/UIxMailToSelection.js +++ b/UI/WebServerResources/UIxMailToSelection.js @@ -153,7 +153,7 @@ function removeLastEditedRowIfEmpty() { addresses.removeChild(addr); } addressList = $("addressList"); - senderRow = this.findRowWithIndex(idx); + senderRow = $("row_" + idx); addressList.removeChild(senderRow); this.adjustInlineAttachmentListHeight(this); } @@ -170,11 +170,6 @@ function findAddressWithIndex(idx) { return null; } -function findRowWithIndex(idx) { - var id = 'row_' + idx; - return $(id); -} - function getIndexFromIdentifier(id) { return id.split('_')[1]; } @@ -245,15 +240,5 @@ function adjustInlineAttachmentListHeight(sender) { } } -function hideInlineAttachmentList(sender) { - var e; - -// xVisibility('compose_rightside', false); - e = $('compose_rightside'); - e.style.display = 'none'; - e = $('compose_leftside'); - e.style.width = "100%"; -} - /* addressbook helpers */