fix to use new tree rules

This commit is contained in:
pavlov%netscape.com 2000-04-25 03:25:13 +00:00
parent 4acf7f91f6
commit 6ef65037c4
3 changed files with 8 additions and 11 deletions

View File

@ -225,9 +225,9 @@ function createTree(parentElement, dirArray)
/* treeCell.setAttribute("indent", "true");*/ /* treeCell.setAttribute("indent", "true");*/
treeCell.setAttribute("value", file.leafName); treeCell.setAttribute("value", file.leafName);
if (isDirectory) if (isDirectory)
treeCell.setAttribute("class", "directory"); treeCell.setAttribute("class", "directory treecell-iconic");
else if (isFile) else if (isFile)
treeCell.setAttribute("class", "file"); treeCell.setAttribute("class", "file treecell-iconic");
treeRow.appendChild(treeCell); treeRow.appendChild(treeCell);
/* treeCell -- size */ /* treeCell -- size */

View File

@ -30,9 +30,9 @@
<treecol/> <treecol/>
<treehead> <treehead>
<treerow> <treerow>
<treecell value="Name"/> <treecell class="treecell-header" value="Name"/>
<treecell value="Size"/> <treecell class="treecell-header" value="Size"/>
<treecell value="Permissions"/> <treecell class="treecell-header" value="Permissions"/>
</treerow> </treerow>
</treehead> </treehead>
</tree> </tree>

View File

@ -1,16 +1,13 @@
@import url(chrome://global/skin/global.css); @import url(chrome://global/skin/global.css);
treecell.directory > .tree-button { treecell.directory {
list-style-image: url("chrome://global/skin/dir-closed.gif"); list-style-image: url("chrome://global/skin/dir-closed.gif");
} }
treecell.directory[open="true"] > .tree-button { treecell.file {
list-style-image: url("chrome://global/skin/dir-open.gif");
}
treecell.file > .tree-button {
list-style-image: url("chrome://global/skin/blank.gif"); list-style-image: url("chrome://global/skin/blank.gif");
} }
/* /*
treeitem.hidden > treerow > treecell > .tree-button { treeitem.hidden > treerow > treecell > .tree-button {
color: #CCCCCC; color: #CCCCCC;