diff --git a/mailnews/addrbook/resources/content/abDirTreeOverlay.xul b/mailnews/addrbook/resources/content/abDirTreeOverlay.xul index 359cd04cb24..584c13dc26f 100644 --- a/mailnews/addrbook/resources/content/abDirTreeOverlay.xul +++ b/mailnews/addrbook/resources/content/abDirTreeOverlay.xul @@ -32,6 +32,8 @@ Rights Reserved. style="width:100%; height:100%" ref="abdirectory://" datasources="rdf:addressdirectory" + rdf:containment="http://home.netscape.com/NC-rdf#child" + rdf:ignore="http://home.netscape.com/NC-rdf#CardChild" onselect="DirPaneSelectionChange(); document.commandDispatcher.updateCommands('tree-select');" onblur="goOnEvent(this,'blur')" allownegativeassertions="false" @@ -51,9 +53,7 @@ Rights Reserved. - + diff --git a/mailnews/addrbook/resources/content/abSelectAddressesDialog.js b/mailnews/addrbook/resources/content/abSelectAddressesDialog.js index 747ca0d083b..dd5588ab190 100644 --- a/mailnews/addrbook/resources/content/abSelectAddressesDialog.js +++ b/mailnews/addrbook/resources/content/abSelectAddressesDialog.js @@ -79,25 +79,25 @@ function SelectAddressOKButton() cell = row.childNodes[0]; if ( cell.childNodes && cell.childNodes.length ) { - text = cell.childNodes[0]; - if ( text && text.data && text.data.length ) + text = cell.getAttribute('value'); + if ( text ) { - switch ( text.data[0] ) + switch ( text[0] ) { case prefixTo[0]: if ( toAddress ) toAddress += ", "; - toAddress += text.data.substring(prefixTo.length, text.data.length); + toAddress += text.substring(prefixTo.length, text.length); break; case prefixCc[0]: if ( ccAddress ) ccAddress += ", "; - ccAddress += text.data.substring(prefixCc.length, text.data.length); + ccAddress += text.substring(prefixCc.length, text.length); break; case prefixBcc[0]: if ( bccAddress ) bccAddress += ", "; - bccAddress += text.data.substring(prefixBcc.length, text.data.length); + bccAddress += text.substring(prefixBcc.length, text.length); break; } } @@ -159,9 +159,8 @@ function AddAddressIntoBucket(address) var item = document.createElement('treeitem'); var row = document.createElement('treerow'); var cell = document.createElement('treecell'); - var text = document.createTextNode(address); + cell.setAttribute('value', address); - cell.appendChild(text); row.appendChild(cell); item.appendChild(row); body.appendChild(item); diff --git a/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul b/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul index 467376390ee..5bc8ce740a4 100644 --- a/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul +++ b/mailnews/addrbook/resources/content/abSelectAddressesDialog.xul @@ -32,8 +32,8 @@ Rights Reserved. xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="&selectAddressWindow.title;" class="dialog" - width="640" height="480" - style="width:100%; height:100%; padding:0px" + width="680" height="480" + style="padding:0px" onload="OnLoadSelectAddress()" align="vertical"> @@ -47,7 +47,7 @@ Rights Reserved. - + &search.label; @@ -67,9 +67,9 @@ Rights Reserved. + style="width:180px; height:100%; background-color:white; border-right:solid black 1px"> - + @@ -84,13 +84,13 @@ Rights Reserved. - + - + @@ -105,7 +105,7 @@ Rights Reserved. - +