Fix for bug # 130403. When teh new card dialog is opened from selected addresses dialog,

there is no selectedab. Make personal addressbook selectedab, if there is no selected addressbook.
r=varada, sr=bienvenu
This commit is contained in:
srilatha%netscape.com 2002-06-20 23:48:54 +00:00
Родитель 867dab46bf
Коммит 90d68610db
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -790,6 +790,9 @@ function GetSelectedAddressBookDirID(abListItem)
if (!selectedAB && abDirEntries && abDirEntries.localName == "menulist" && abDirEntries.selectedItem)
selectedAB = abDirEntries.selectedItem.getAttribute("id");
// if we do not have a selected ab still, use personal addressbook
if (!selectedAB)
selectedAB = kPersonalAddressbookURI;
return selectedAB;
}