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("value", file.leafName);
if (isDirectory)
treeCell.setAttribute("class", "directory");
treeCell.setAttribute("class", "directory treecell-iconic");
else if (isFile)
treeCell.setAttribute("class", "file");
treeCell.setAttribute("class", "file treecell-iconic");
treeRow.appendChild(treeCell);
/* treeCell -- size */

View File

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

View File

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