Fix sorting.

This commit is contained in:
putterman%netscape.com 1999-07-14 16:34:27 +00:00
parent 13641ab3ed
commit c2d6a0ed81
2 changed files with 22 additions and 8 deletions

View File

@ -57,9 +57,14 @@ function FindInSidebar(currentWindow, id)
}
}
function GetThreadPane()
{
return frames[0].frames[1].frames[0];
}
function GetThreadTree()
{
var threadTree = frames[0].frames[1].frames[0].document.getElementById('threadTree');
var threadTree = GetThreadPane().document.getElementById('threadTree');
return threadTree;
}
@ -197,7 +202,9 @@ function ChangeFolderByURI(uri)
function SortThreadPane(column, sortKey)
{
var node = frames[0].frames[1].document.getElementById(column);
var threadPane = GetThreadPane();
var node = threadPane.document.getElementById(column);
if(!node)
return false;
@ -275,3 +282,10 @@ function RefreshThreadTreeView()
currentFolder.setAttribute('id', currentFolderID);
}
function ToggleTwisty(treeItem)
{
dump(treeItem);
return true;
}

View File

@ -76,12 +76,12 @@ Rights Reserved.
<treecol style="width:8%" id="TotalColumn" rdf:resource="http://home.netscape.com/NC-rdf#TotalMessages"/>
<treehead>
<treerow>
<treecell onclick="return parent.parent.SortThreadPane('SubjectColumn', 'http://home.netscape.com/NC-rdf#Subject');">&subjectColumn.label;</treecell>
<treecell onclick="return parent.parent.SortThreadPane('AuthorColumn', 'http://home.netscape.com/NC-rdf#Sender');">&senderColumn.label;</treecell>
<treecell onclick="return parent.parent.SortThreadPane('DateColumn', 'http://home.netscape.com/NC-rdf#Date');">&dateColumn.label;</treecell>
<treecell onclick="return parent.parent.SortThreadPane('StatusColumn', 'http://home.netscape.com/NC-rdf#Status');">&statusColumn.label;</treecell>
<treecell onclick="return parent.parent.SortThreadPane('UnreadColumn', 'http://home.netscape.com/NC-rdf#TotalUnreadMessages');">&unreadColumn.label;</treecell>
<treecell onclick="return parent.parent.SortThreadPane('TotalColumn', 'http://home.netscape.com/NC-rdf#TotalMessages');">&totalColumn.label;</treecell>
<treecell onclick="return top.SortThreadPane('SubjectColumn', 'http://home.netscape.com/NC-rdf#Subject');">&subjectColumn.label;</treecell>
<treecell onclick="return top.SortThreadPane('AuthorColumn', 'http://home.netscape.com/NC-rdf#Sender');">&senderColumn.label;</treecell>
<treecell onclick="return top.SortThreadPane('DateColumn', 'http://home.netscape.com/NC-rdf#Date');">&dateColumn.label;</treecell>
<treecell onclick="return top.SortThreadPane('StatusColumn', 'http://home.netscape.com/NC-rdf#Status');">&statusColumn.label;</treecell>
<treecell onclick="return top.SortThreadPane('UnreadColumn', 'http://home.netscape.com/NC-rdf#TotalUnreadMessages');">&unreadColumn.label;</treecell>
<treecell onclick="return top.SortThreadPane('TotalColumn', 'http://home.netscape.com/NC-rdf#TotalMessages');">&totalColumn.label;</treecell>
</treerow>
</treehead>