This commit is contained in:
putterman%netscape.com 1999-08-30 22:13:12 +00:00
Родитель 29e6397e4c
Коммит 9ef475d95b
1 изменённых файлов: 0 добавлений и 104 удалений

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

@ -346,110 +346,6 @@ function ClearMessagePane()
} }
function GoNextMessage()
{
var tree = GetThreadTree();
var selArray = tree.selectedItems;
if ( selArray && (selArray.length == 1) )
{
var nextMessage = GetNextMessage(selArray[0]);
if(nextMessage)
{
tree.clearItemSelection();
tree.selectItem(nextMessage);
}
}
}
function GoNextUnreadMessage()
{
var tree = GetThreadTree();
var selArray = tree.selectedItems;
if ( selArray && (selArray.length == 1) )
{
var nextMessage = GetNextUnreadMessage(selArray[0]);
if(nextMessage)
{
tree.clearItemSelection();
tree.selectItem(nextMessage);
}
}
}
function GetNextMessage(currentMessage)
{
var nextMessage = currentMessage.nextSibling;
if(!nextMessage)
{
dump('We need to start from the top\n');
var parent = currentMessage.parentNode;
nextMessage = parent.firstChild;
if(nextMessage == currentMessage)
nextMessage = null;
}
if(nextMessage)
{
var id = nextMessage.getAttribute('id');
dump(id + '\n');
}
else
dump('No next message\n');
return nextMessage;
}
function GetNextUnreadMessage(currentMessage)
{
var foundMessage = false;
var nextMessage = currentMessage.nextSibling;
while(nextMessage)
{
var status = nextMessage.getAttribute('Status');
dump('status = ' + status);
dump('\n');
if(status == ' ' || status == 'New')
break;
nextMessage = nextMessage.nextSibling;
}
if(!nextMessage)
{
dump('We need to start from the top\n');
var parent = currentMessage.parentNode;
nextMessage = parent.firstChild;
while(nextMessage)
{
if(nextMessage == currentMessage)
{
nextMessage = null;
break;
}
var status = nextMessage.getAttribute('Status');
dump('status = ' + status);
dump('\n');
if(status == '' || status == 'New')
break;
nextMessage = nextMessage.nextSibling;
}
}
if(nextMessage)
{
var id = nextMessage.getAttribute('id');
dump(id + '\n');
}
else
dump('No next message\n');
return nextMessage;
}
function OpenFolderTreeToFolder(folderURI) function OpenFolderTreeToFolder(folderURI)
{ {
var tree = GetFolderTree(); var tree = GetFolderTree();