From 2ecb4131de9e8b0fcfa5ef9cbc80f104e893e078 Mon Sep 17 00:00:00 2001 From: "neil%parkwaycc.co.uk" Date: Thu, 12 Jun 2008 21:40:38 +0000 Subject: [PATCH] Provide the selected identity key as the autocomplete search parameter b=370306 r=Standard8 sr=bienvenu git-svn-id: svn://10.0.0.236/trunk@252299 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mail/components/compose/content/MsgComposeCommands.js | 3 +++ .../mail/components/compose/content/addressingWidgetOverlay.js | 2 +- .../mailnews/compose/resources/content/MsgComposeCommands.js | 3 +++ .../compose/resources/content/addressingWidgetOverlay.js | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mozilla/mail/components/compose/content/MsgComposeCommands.js b/mozilla/mail/components/compose/content/MsgComposeCommands.js index 6047bb3776c..4262eff0320 100644 --- a/mozilla/mail/components/compose/content/MsgComposeCommands.js +++ b/mozilla/mail/components/compose/content/MsgComposeCommands.js @@ -2937,6 +2937,9 @@ function LoadIdentity(startup) if (identityElement.selectedItem) identityElement.setAttribute('accountname', identityElement.selectedItem.getAttribute('accountname')); + for (var i = 1; i <= awGetMaxRecipients(); i++) + awGetInputElement(i).setAttribute("autocompletesearchparam", idKey); + if (!startup && prevIdentity && idKey != prevIdentity.key) { var prefstring = "mail.identity." + prevIdentity.key; diff --git a/mozilla/mail/components/compose/content/addressingWidgetOverlay.js b/mozilla/mail/components/compose/content/addressingWidgetOverlay.js index b23ba75085a..f4a70c5a18c 100644 --- a/mozilla/mail/components/compose/content/addressingWidgetOverlay.js +++ b/mozilla/mail/components/compose/content/addressingWidgetOverlay.js @@ -36,7 +36,7 @@ # # ***** END LICENSE BLOCK ***** -top.MAX_RECIPIENTS = 0; +top.MAX_RECIPIENTS = 1; /* for the initial listitem created in the XUL */ var inputElementType = ""; var selectElementType = ""; diff --git a/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js b/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js index fcdbb274e50..cd923bb17ec 100644 --- a/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js +++ b/mozilla/mailnews/compose/resources/content/MsgComposeCommands.js @@ -2853,6 +2853,9 @@ function LoadIdentity(startup) var idKey = identityElement.value; gCurrentIdentity = gAccountManager.getIdentity(idKey); + for (var i = 1; i <= awGetMaxRecipients(); i++) + awGetInputElement(i).setAttribute("autocompletesearchparam", idKey); + if (!startup && prevIdentity && idKey != prevIdentity.key) { var prefstring = "mail.identity." + prevIdentity.key; diff --git a/mozilla/mailnews/compose/resources/content/addressingWidgetOverlay.js b/mozilla/mailnews/compose/resources/content/addressingWidgetOverlay.js index d8a20d62288..f88be2f473c 100644 --- a/mozilla/mailnews/compose/resources/content/addressingWidgetOverlay.js +++ b/mozilla/mailnews/compose/resources/content/addressingWidgetOverlay.js @@ -35,7 +35,7 @@ * * ***** END LICENSE BLOCK ***** */ -top.MAX_RECIPIENTS = 0; +top.MAX_RECIPIENTS = 1; /* for the initial listitem created in the XUL */ var inputElementType = ""; var selectElementType = "";