mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-22 03:43:58 +00:00
Fix sorting.
This commit is contained in:
parent
13641ab3ed
commit
c2d6a0ed81
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user