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 */