From 26d34f6d413c9b2ed102bc9b0ddeb974cdb98dcc Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Tue, 18 Jul 2006 03:18:55 +0000 Subject: [PATCH] fix 282669 focus To: address field correctly when cached compose window re-used, a=mscott git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@202296 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mail/components/compose/content/MsgComposeCommands.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/mail/components/compose/content/MsgComposeCommands.js b/mozilla/mail/components/compose/content/MsgComposeCommands.js index a97346f21cb..42fea610b37 100644 --- a/mozilla/mail/components/compose/content/MsgComposeCommands.js +++ b/mozilla/mail/components/compose/content/MsgComposeCommands.js @@ -228,6 +228,10 @@ var gComposeRecyclingListener = { disableEditableFields(); ReleaseGlobalVariables(); + // Clear the focus + if (top.awInputElement.getAttribute('focused') != '') + top.awInputElement.removeAttribute('focused'); + //Reset Boxes size document.getElementById("headers-box").removeAttribute("height"); document.getElementById("appcontent").removeAttribute("height");