Add descending sort, add Message counts to folder pane and Open Navigator

from within Messenger.
This commit is contained in:
putterman%netscape.com 1999-04-12 20:25:41 +00:00
Родитель 5e083ca57b
Коммит c84813f246
3 изменённых файлов: 31 добавлений и 2 удалений

Просмотреть файл

@ -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() {}