diff --git a/mailnews/addrbook/resources/content/addressbook.js b/mailnews/addrbook/resources/content/addressbook.js index 70d22e05efb..de4a2eaecc3 100644 --- a/mailnews/addrbook/resources/content/addressbook.js +++ b/mailnews/addrbook/resources/content/addressbook.js @@ -1,9 +1,12 @@ function AbNewCardDialog() { + var myURI = GetResultTreeDirectory().getAttribute('ref'); + dump("myURI = " + myURI + "\n"); + var dialog = window.openDialog("chrome://addressbook/content/newcardDialog.xul", "abNewCard", "chrome", - {abURI:GetResultTreeDirectory().getAttribute('id')}); + {abURI:GetResultTreeDirectory().getAttribute('ref')}); return dialog; } @@ -13,7 +16,7 @@ function AbEditCardDialog(card, okCallback) var dialog = window.openDialog("chrome://addressbook/content/editcardDialog.xul", "abEditCard", "chrome", - {abURI:GetResultTreeDirectory().getAttribute('id'), + {abURI:GetResultTreeDirectory().getAttribute('ref'), card:card, okCallback:okCallback}); return dialog; @@ -42,22 +45,20 @@ function AbDelete() function GetDirectoryTree() { var directoryTree = frames["directoryFrame"].document.getElementById('dirTree'); + dump("directoryTree = " + directoryTree + "\n"); return directoryTree; } function GetResultTree() { var cardTree = frames["resultsFrame"].document.getElementById('resultTree'); + dump("cardTree = " + cardTree + "\n"); return cardTree; } function GetResultTreeDirectory() { - var tree = GetResultTree(); - var treechildrenList = tree.getElementsByTagName('treechildren'); - - if ( treechildrenList.length == 1 ) - return(treechildrenList[0]); + return(GetResultTree()); } diff --git a/mailnews/addrbook/resources/content/dirPane.xul b/mailnews/addrbook/resources/content/dirPane.xul index 2a837d01104..e69de29bb2d 100644 --- a/mailnews/addrbook/resources/content/dirPane.xul +++ b/mailnews/addrbook/resources/content/dirPane.xul @@ -1,51 +0,0 @@ - - - - - -]> - - - - - - - - - - - - - - &directoryColumn.label; - - - - - - - - - - diff --git a/mailnews/addrbook/resources/content/resultPane.xul b/mailnews/addrbook/resources/content/resultPane.xul index 54e7f82459a..e69de29bb2d 100644 --- a/mailnews/addrbook/resources/content/resultPane.xul +++ b/mailnews/addrbook/resources/content/resultPane.xul @@ -1,63 +0,0 @@ - - - - - - - -]> - - - - - - - - - - - - - - - - &nameColumn.label; - &emailColumn.label; - &phoneColumn.label; - - - - - - - - diff --git a/mailnews/addrbook/resources/content/selectaddress.xul b/mailnews/addrbook/resources/content/selectaddress.xul index a4ea4265be7..e69de29bb2d 100644 --- a/mailnews/addrbook/resources/content/selectaddress.xul +++ b/mailnews/addrbook/resources/content/selectaddress.xul @@ -1,179 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - - - - - - - - - - &search.label; - - - - - - - - - - - - - - - - - - - - - - - - &directoryColumn.label; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -