extra files I missed in the last checkin r=putterman

This commit is contained in:
alecf%netscape.com 2000-06-21 06:35:58 +00:00
Родитель d466f3d433
Коммит 285316311f
2 изменённых файлов: 6 добавлений и 76 удалений

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

@ -174,7 +174,7 @@ function ChangeFolderByURI(uri, isThreaded, sortID, sortDirection)
}
catch(ex)
{
dump("Error loading with many headers to download\n");
dump("Error loading with many headers to download: " + ex + "\n");
}
}
else
@ -562,11 +562,11 @@ function FolderPaneSelectionChange()
{
var selArray = tree.selectedItems;
if ( selArray && (selArray.length == 1) )
{
{
ChangeFolderByDOMNode(selArray[0]);
// explicitly force the message pane to get cleared when we switch folders
ClearMessagePane();
}
// explicitly force the message pane to get cleared when we switch folders
ClearMessagePane();
}
else
{
var threadTree = GetThreadTree();
@ -669,29 +669,6 @@ function IsSpecialFolder(msgFolder, specialFolderName)
return false;
}
function ChangeThreadView()
{
var folder = GetSelectedFolder();
var threadColumn = document.getElementById('ThreadColumnHeader');
if(threadColumn)
{
var currentView = threadColumn.getAttribute('currentView');
if(currentView== 'threaded')
{
ShowThreads(false);
if(folder)
folder.setAttribute('threaded', "");
}
else if(currentView == 'unthreaded')
{
ShowThreads(true);
if(folder)
folder.setAttribute('threaded', "true");
}
RefreshThreadTreeView();
}
}
function ShowThreads(showThreads)
{

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

@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
@ -590,53 +590,6 @@ function GetSelectedMessage()
}
function ThreadPaneOnClick(event)
{
var targetclass = event.target.getAttribute('class');
debug('targetclass = ' + targetclass + '\n');
if (targetclass == 'tree-cell-twisty') {
// The twisty is nested three below the treeitem:
// <treeitem>
// <treerow>
// <treecell>
// <titledbutton class="tree-cell-twisty"> <!-- anonymous -->
var treeitem = event.target.parentNode.parentNode.parentNode;
var open = treeitem.getAttribute('open');
if(open == "true")
{
//open all of the children of the treeitem
msgNavigationService.OpenTreeitemAndDescendants(treeitem);
}
}
else if(event.detail == 2)
{
dump("Howdy partner.\n");
ThreadPaneDoubleClick(event.target.parentNode.parentNode);
}
}
function ThreadPaneDoubleClick(treeitem)
{
if(IsSpecialFolderSelected("Drafts"))
{
var loadedFolder = GetLoadedMsgFolder();
var messageArray = GetSelectedMessages();
ComposeMessage(msgComposeType.Draft, msgComposeFormat.Default, loadedFolder, messageArray);
}
else if(IsSpecialFolderSelected("Templates"))
{
var loadedFolder = GetLoadedMsgFolder();
var messageArray = GetSelectedMessages();
ComposeMessage(msgComposeType.Template, msgComposeFormat.Default, loadedFolder, messageArray);
}
else
{
var messageUri = treeitem.getAttribute("id");
MsgOpenNewWindowForMessage(messageUri, null);
}
}
function GetServer(uri)