Bug 460550 - When going to compose and then button address, there are no addresses in window
authorJens Hatlak (:InvisibleSmiley) <jh@junetz.de>
Sun, 11 Oct 2009 18:16:13 +0100
changeset 4114 911c966a0129cdd70bb516fa2ccdd7d17cb8ec1f
parent 4113 ca1a780e6bd7e26d7f6265d4cf8b5fd9d5019f8f
child 4115 8a1125835a2e27040683309401931b74fcc53e9e
push id3216
push useriann_cvs@blueyonder.co.uk
push dateSun, 11 Oct 2009 17:16:33 +0000
treeherdercomm-central@911c966a0129 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs460550
Bug 460550 - When going to compose and then button address, there are no addresses in window r/a-SM2.0=mnyromyr sr=neil
mailnews/addrbook/content/abSelectAddressesDialog.js
--- a/mailnews/addrbook/content/abSelectAddressesDialog.js
+++ b/mailnews/addrbook/content/abSelectAddressesDialog.js
@@ -112,21 +112,21 @@ function OnLoadSelectAddress()
     AddAddressFromComposeWindow(ccAddress, prefixCc);
     AddAddressFromComposeWindow(bccAddress, prefixBcc);
   }
 
   gSearchInput = document.getElementById("searchInput");
 
   // Reselect the persisted address book if possible, if not just select the
   // first in the list.
-  var temp = abPopup.value;
-  abPopup.selectedItem = null;
-  abPopup.value = temp;
-  if (!abPopup.selectedItem)
-    abPopup.selectedIndex = 0;
+  var temp = abList.value;
+  abList.selectedItem = null;
+  abList.value = temp;
+  if (!abList.selectedItem)
+    abList.selectedIndex = 0;
 
   ChangeDirectoryByURI(abList.value);
 
   DialogBucketPaneSelectionChanged();
   
   var workPhoneCol = document.getElementById("WorkPhone");
   workPhoneCol.setAttribute("hidden", "true");