зеркало из https://github.com/mozilla/gecko-dev.git
Add descending sort, add Message counts to folder pane and Open Navigator
from within Messenger.
This commit is contained in:
Родитель
5e083ca57b
Коммит
c84813f246
|
@ -118,7 +118,15 @@ function SortThreadPane(column, sortKey)
|
|||
}
|
||||
|
||||
// sort!!!
|
||||
rdfCore.doSort(node, sortKey, "ascending");
|
||||
sortDirection = "ascending";
|
||||
var currentDirection = node.getAttribute('sortDirection');
|
||||
if (currentDirection == "ascending")
|
||||
sortDirection = "descending";
|
||||
else if (currentDirection == "descending")
|
||||
sortDirection = "ascending";
|
||||
else sortDirection = "ascending";
|
||||
|
||||
rdfCore.doSort(node, sortKey, sortDirection);
|
||||
|
||||
return(true);
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
<tree rdf:datasources="rdf:mailnews" onclick="return parent.parent.ChangeFolderByDOMNode(event.target.parentNode)">
|
||||
<treecol rdf:resource="http://home.netscape.com/NC-rdf#Name"/>
|
||||
<treecol rdf:resource="http://home.netscape.com/NC-rdf#TotalUnreadMessages"/>
|
||||
<treecol rdf:resource="http://home.netscape.com/NC-rdf#TotalMessages"/>
|
||||
<treehead>
|
||||
<treeitem>
|
||||
<treecell>Name</treecell>
|
||||
|
|
|
@ -28,7 +28,26 @@ function SetDocumentCharacterSet(aCharset)
|
|||
}
|
||||
}
|
||||
|
||||
function NavigatorWindow() {}
|
||||
function NavigatorWindow()
|
||||
{
|
||||
var toolkitCore = XPAppCoresManager.Find("ToolkitCore");
|
||||
if (!toolkitCore)
|
||||
{
|
||||
toolkitCore = new ToolkitCore();
|
||||
if (toolkitCore)
|
||||
{
|
||||
toolkitCore.Init("ToolkitCore");
|
||||
}
|
||||
}
|
||||
|
||||
if (toolkitCore)
|
||||
{
|
||||
toolkitCore.ShowWindow("resource:/res/samples/navigator.xul",
|
||||
window);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
function MessengerWindow() {}
|
||||
function ComposerWindow() {}
|
||||
function AIMService() {}
|
||||
|
|
Загрузка…
Ссылка в новой задаче