2000-06-21 10:34:59 +04:00
|
|
|
/* -*- 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
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
2001-08-23 05:10:05 +04:00
|
|
|
*
|
2000-06-21 10:34:59 +04:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
2001-08-23 05:10:05 +04:00
|
|
|
*
|
2000-06-21 10:34:59 +04:00
|
|
|
* The Original Code is Mozilla Communicator client code, released
|
|
|
|
* March 31, 1998.
|
2001-08-23 05:10:05 +04:00
|
|
|
*
|
2000-06-21 10:34:59 +04:00
|
|
|
* The Initial Developer of the Original Code is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998-1999 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
2001-01-31 01:02:27 +03:00
|
|
|
var gLastMessageUriToLoad = null;
|
2001-03-17 04:59:34 +03:00
|
|
|
var gThreadPaneCommandUpdater = null;
|
2001-01-31 01:02:27 +03:00
|
|
|
|
2000-06-21 10:34:59 +04:00
|
|
|
function ThreadPaneOnClick(event)
|
|
|
|
{
|
2001-07-03 09:19:50 +04:00
|
|
|
// we only care about button 0 (left click) events
|
|
|
|
if (event.button != 0) return;
|
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
// we are already handling marking as read and flagging
|
|
|
|
// in nsMsgDBView.cpp
|
|
|
|
// so all we need to worry about here is double clicks
|
|
|
|
// and column header.
|
|
|
|
//
|
2002-03-29 05:46:01 +03:00
|
|
|
// we get in here for clicks on the "treecol" (headers)
|
2001-03-17 04:59:34 +03:00
|
|
|
// and the "scrollbarbutton" (scrollbar buttons)
|
|
|
|
// we don't want those events to cause a "double click"
|
|
|
|
|
2000-12-30 23:48:15 +03:00
|
|
|
var t = event.originalTarget;
|
2000-09-07 12:17:32 +04:00
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
if (t.localName == "treecol") {
|
2001-03-17 04:59:34 +03:00
|
|
|
HandleColumnClick(t.id);
|
|
|
|
}
|
2003-05-16 05:10:33 +04:00
|
|
|
else if (t.localName == "treechildren") {
|
|
|
|
var row = new Object;
|
|
|
|
var colID = new Object;
|
|
|
|
var childElt = new Object;
|
2001-04-03 10:13:38 +04:00
|
|
|
|
2003-05-16 05:10:33 +04:00
|
|
|
var tree = GetThreadTree();
|
|
|
|
// figure out what cell the click was in
|
|
|
|
tree.treeBoxObject.getCellAt(event.clientX, event.clientY, row, colID, childElt);
|
|
|
|
if (row.value == -1)
|
|
|
|
return;
|
2001-04-03 10:13:38 +04:00
|
|
|
|
2003-05-16 05:10:33 +04:00
|
|
|
// if the cell is in a "cycler" column
|
|
|
|
// or if the user double clicked on the twisty,
|
|
|
|
// don't open the message in a new window
|
|
|
|
var col = document.getElementById(colID.value);
|
|
|
|
if (col) {
|
|
|
|
if (event.detail == 2 && col.getAttribute("cycler") != "true" && (childElt.value != "twisty")) {
|
|
|
|
ThreadPaneDoubleClick();
|
|
|
|
// double clicking should not toggle the open / close state of the
|
|
|
|
// thread. this will happen if we don't prevent the event from
|
|
|
|
// bubbling to the default handler in tree.xml
|
|
|
|
event.preventBubble();
|
|
|
|
}
|
|
|
|
else if (colID.value == "junkStatusCol") {
|
|
|
|
MsgJunkMailInfo(true);
|
|
|
|
}
|
|
|
|
}
|
2000-12-30 23:48:15 +03:00
|
|
|
}
|
2001-03-17 04:59:34 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function nsMsgDBViewCommandUpdater()
|
|
|
|
{}
|
|
|
|
|
|
|
|
nsMsgDBViewCommandUpdater.prototype =
|
|
|
|
{
|
|
|
|
updateCommandStatus : function()
|
|
|
|
{
|
|
|
|
// the back end is smart and is only telling us to update command status
|
|
|
|
// when the # of items in the selection has actually changed.
|
2001-11-01 07:05:41 +03:00
|
|
|
UpdateMailToolbar("dbview driven, thread pane");
|
2001-03-17 04:59:34 +03:00
|
|
|
},
|
|
|
|
|
2002-08-15 02:12:32 +04:00
|
|
|
displayMessageChanged : function(aFolder, aSubject, aKeywords)
|
2001-03-17 04:59:34 +03:00
|
|
|
{
|
|
|
|
setTitleFromFolder(aFolder, aSubject);
|
|
|
|
gHaveLoadedMessage = true;
|
2002-08-15 02:12:32 +04:00
|
|
|
SetKeywords(aKeywords);
|
2003-03-24 01:12:39 +03:00
|
|
|
goUpdateCommand("button_junk");
|
2001-03-17 04:59:34 +03:00
|
|
|
},
|
|
|
|
|
2003-05-15 00:38:40 +04:00
|
|
|
updateNextMessageAfterDelete : function()
|
|
|
|
{
|
|
|
|
SetNextMessageAfterDelete();
|
|
|
|
},
|
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
QueryInterface : function(iid)
|
|
|
|
{
|
2002-10-07 03:14:25 +04:00
|
|
|
if (iid.equals(Components.interfaces.nsIMsgDBViewCommandUpdater) ||
|
|
|
|
iid.equals(Components.interfaces.nsISupports))
|
|
|
|
return this;
|
2001-03-17 04:59:34 +03:00
|
|
|
|
|
|
|
throw Components.results.NS_NOINTERFACE;
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
function HandleColumnClick(columnID)
|
|
|
|
{
|
2001-04-03 10:13:38 +04:00
|
|
|
var sortType = ConvertColumnIDToSortType(columnID);
|
|
|
|
|
|
|
|
// if sortType is 0, this is an unsupported sort type
|
|
|
|
// return, since we can't sort by that column.
|
2003-07-25 00:15:09 +04:00
|
|
|
if (sortType == 0)
|
2001-04-03 10:13:38 +04:00
|
|
|
return;
|
|
|
|
|
|
|
|
var dbview = GetDBView();
|
2003-11-14 06:48:41 +03:00
|
|
|
var simpleColumns = false;
|
|
|
|
try {
|
|
|
|
simpleColumns = !pref.getBoolPref("mailnews.thread_pane_column_unthreads");
|
|
|
|
}
|
|
|
|
catch (ex) {
|
|
|
|
}
|
|
|
|
if (sortType == nsMsgViewSortType.byThread) {
|
|
|
|
if (!dbview.supportsThreading)
|
2002-08-30 08:20:06 +04:00
|
|
|
return;
|
2003-11-14 06:48:41 +03:00
|
|
|
|
|
|
|
if (simpleColumns)
|
|
|
|
MsgToggleThreaded();
|
|
|
|
else if (dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay)
|
|
|
|
MsgReverseSortThreadPane();
|
|
|
|
else
|
|
|
|
MsgSortByThread();
|
2001-03-17 04:59:34 +03:00
|
|
|
}
|
|
|
|
else {
|
2003-11-14 06:48:41 +03:00
|
|
|
if (!simpleColumns && (dbview.viewFlags & nsMsgViewFlagsType.kThreadedDisplay)) {
|
|
|
|
dbview.viewFlags &= ~nsMsgViewFlagsType.kThreadedDisplay;
|
|
|
|
MsgSortThreadPane(sortType);
|
2003-07-14 18:17:48 +04:00
|
|
|
}
|
2003-11-14 06:48:41 +03:00
|
|
|
else if (dbview.sortType == sortType) {
|
|
|
|
MsgReverseSortThreadPane();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
MsgSortThreadPane(sortType);
|
2003-07-14 18:17:48 +04:00
|
|
|
}
|
2001-03-17 04:59:34 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-02-07 07:35:37 +03:00
|
|
|
function MsgComposeDraftMessage()
|
|
|
|
{
|
|
|
|
var loadedFolder = GetLoadedMsgFolder();
|
|
|
|
var messageArray = GetSelectedMessages();
|
|
|
|
|
|
|
|
ComposeMessage(msgComposeType.Draft, msgComposeFormat.Default, loadedFolder, messageArray);
|
|
|
|
}
|
|
|
|
|
2001-01-20 08:06:10 +03:00
|
|
|
function ThreadPaneDoubleClick()
|
2000-06-21 10:34:59 +04:00
|
|
|
{
|
2001-08-15 09:07:48 +04:00
|
|
|
if (IsSpecialFolderSelected(MSG_FOLDER_FLAG_DRAFTS)) {
|
|
|
|
MsgComposeDraftMessage();
|
|
|
|
}
|
|
|
|
else if(IsSpecialFolderSelected(MSG_FOLDER_FLAG_TEMPLATES)) {
|
|
|
|
var loadedFolder = GetLoadedMsgFolder();
|
|
|
|
var messageArray = GetSelectedMessages();
|
|
|
|
ComposeMessage(msgComposeType.Template, msgComposeFormat.Default, loadedFolder, messageArray);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
MsgOpenSelectedMessages();
|
|
|
|
}
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
2000-09-15 02:58:41 +04:00
|
|
|
function ThreadPaneKeyPress(event)
|
|
|
|
{
|
2001-04-13 12:17:56 +04:00
|
|
|
if (event.keyCode == 13)
|
|
|
|
ThreadPaneDoubleClick();
|
2000-09-15 02:58:41 +04:00
|
|
|
}
|
2000-06-21 10:34:59 +04:00
|
|
|
|
|
|
|
function MsgSortByDate()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byDate);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
2003-09-17 23:52:23 +04:00
|
|
|
function MsgSortBySender()
|
2000-06-21 10:34:59 +04:00
|
|
|
{
|
2003-09-17 23:52:23 +04:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byAuthor);
|
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByRecipient()
|
|
|
|
{
|
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byRecipient);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByStatus()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byStatus);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
2001-10-28 23:26:59 +03:00
|
|
|
function MsgSortByLabel()
|
|
|
|
{
|
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byLabel);
|
|
|
|
}
|
|
|
|
|
2002-10-08 08:29:57 +04:00
|
|
|
function MsgSortByJunkStatus()
|
2002-09-20 04:04:01 +04:00
|
|
|
{
|
2002-10-08 08:29:57 +04:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byJunkStatus);
|
2002-09-20 04:04:01 +04:00
|
|
|
}
|
|
|
|
|
2000-06-21 10:34:59 +04:00
|
|
|
function MsgSortBySubject()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.bySubject);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
2001-05-11 05:20:54 +04:00
|
|
|
function MsgSortByLocation()
|
|
|
|
{
|
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byLocation);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-06-21 10:34:59 +04:00
|
|
|
function MsgSortByFlagged()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byFlagged);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByPriority()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byPriority);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortBySize()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.bySize);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByUnread()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byUnread);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByOrderReceived()
|
|
|
|
{
|
2001-03-17 04:59:34 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byId);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByTotal()
|
|
|
|
{
|
2001-03-24 04:12:33 +03:00
|
|
|
dump("XXX fix MsgSortByTotal\n");
|
2001-03-17 04:59:34 +03:00
|
|
|
//MsgSortThreadPane(nsMsgViewSortType.byTotal);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortByThread()
|
|
|
|
{
|
2001-10-25 09:34:49 +04:00
|
|
|
var dbview = GetDBView();
|
2002-08-30 08:20:06 +04:00
|
|
|
if(dbview && !dbview.supportsThreading)
|
2001-10-25 09:34:49 +04:00
|
|
|
return;
|
2003-11-14 18:02:06 +03:00
|
|
|
dbview.viewFlags |= nsMsgViewFlagsType.kThreadedDisplay;
|
2003-11-14 06:48:41 +03:00
|
|
|
MsgSortThreadPane(nsMsgViewSortType.byId);
|
2000-06-21 10:34:59 +04:00
|
|
|
}
|
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
function MsgSortThreadPane(sortType)
|
2000-06-21 10:34:59 +04:00
|
|
|
{
|
2001-04-03 10:13:38 +04:00
|
|
|
var dbview = GetDBView();
|
|
|
|
dbview.sort(sortType, nsMsgViewSortOrder.ascending);
|
|
|
|
UpdateSortIndicators(sortType, nsMsgViewSortOrder.ascending);
|
2000-06-30 10:02:30 +04:00
|
|
|
}
|
|
|
|
|
2001-04-03 10:13:38 +04:00
|
|
|
function MsgReverseSortThreadPane()
|
|
|
|
{
|
|
|
|
var dbview = GetDBView();
|
|
|
|
if (dbview.sortOrder == nsMsgViewSortOrder.ascending) {
|
|
|
|
MsgSortDescending();
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
MsgSortAscending();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-07-14 18:17:48 +04:00
|
|
|
function MsgToggleThreaded()
|
|
|
|
{
|
|
|
|
var dbview = GetDBView();
|
2003-11-14 06:48:41 +03:00
|
|
|
dbview.viewFlags ^= nsMsgViewFlagsType.kThreadedDisplay;
|
|
|
|
dbview.sort(dbview.sortType, dbview.sortOrder); // resort
|
|
|
|
UpdateSortIndicators(dbview.sortType, dbview.sortOrder);
|
2003-07-14 18:17:48 +04:00
|
|
|
}
|
|
|
|
|
2001-03-23 07:39:54 +03:00
|
|
|
function MsgSortAscending()
|
|
|
|
{
|
2001-04-03 10:13:38 +04:00
|
|
|
var dbview = GetDBView();
|
|
|
|
dbview.sort(dbview.sortType, nsMsgViewSortOrder.ascending);
|
|
|
|
UpdateSortIndicators(dbview.sortType, nsMsgViewSortOrder.ascending);
|
2001-03-23 07:39:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function MsgSortDescending()
|
|
|
|
{
|
2001-04-03 10:13:38 +04:00
|
|
|
var dbview = GetDBView();
|
|
|
|
dbview.sort(dbview.sortType, nsMsgViewSortOrder.descending);
|
|
|
|
UpdateSortIndicators(dbview.sortType, nsMsgViewSortOrder.descending);
|
|
|
|
}
|
|
|
|
|
|
|
|
function UpdateSortIndicators(sortType, sortOrder)
|
|
|
|
{
|
2003-01-15 01:37:01 +03:00
|
|
|
// show the twisties if the view is threaded
|
|
|
|
var currCol = document.getElementById("subjectCol");
|
2003-07-14 18:17:48 +04:00
|
|
|
var primary = (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay) && gDBView.supportsThreading;
|
2003-01-15 01:37:01 +03:00
|
|
|
currCol.setAttribute("primary", primary);
|
|
|
|
|
|
|
|
// remove the sort indicator from all the columns
|
|
|
|
currCol = document.getElementById("threadCol");
|
|
|
|
while (currCol) {
|
|
|
|
currCol.removeAttribute("sortDirection");
|
|
|
|
currCol = currCol.nextSibling;
|
|
|
|
}
|
2001-04-03 10:13:38 +04:00
|
|
|
|
|
|
|
// set the sort indicator on the column we are sorted by
|
2003-01-15 01:37:01 +03:00
|
|
|
var colID = ConvertSortTypeToColumnID(sortType);
|
2001-04-03 10:13:38 +04:00
|
|
|
if (colID) {
|
2003-01-15 01:37:01 +03:00
|
|
|
var sortedColumn = document.getElementById(colID);
|
2001-04-03 10:13:38 +04:00
|
|
|
if (sortedColumn) {
|
|
|
|
if (sortOrder == nsMsgViewSortOrder.ascending) {
|
|
|
|
sortedColumn.setAttribute("sortDirection","ascending");
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
sortedColumn.setAttribute("sortDirection","descending");
|
|
|
|
}
|
2003-07-14 18:17:48 +04:00
|
|
|
if (sortedColumn != "threadCol")
|
|
|
|
{
|
|
|
|
currCol = document.getElementById("threadCol");
|
|
|
|
if (currCol)
|
|
|
|
{
|
|
|
|
if (gDBView.viewFlags & nsMsgViewFlagsType.kThreadedDisplay)
|
|
|
|
currCol.setAttribute("sortDirection", "ascending");
|
|
|
|
else
|
|
|
|
currCol.removeAttribute("sortDirection");
|
|
|
|
}
|
|
|
|
}
|
2001-04-03 10:13:38 +04:00
|
|
|
}
|
|
|
|
}
|
2001-03-23 07:39:54 +03:00
|
|
|
}
|
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
function IsSpecialFolderSelected(flags)
|
2000-06-30 10:02:30 +04:00
|
|
|
{
|
2001-08-02 07:18:47 +04:00
|
|
|
var selectedFolder = GetThreadPaneFolder();
|
|
|
|
return IsSpecialFolder(selectedFolder, flags);
|
2001-03-17 04:59:34 +03:00
|
|
|
}
|
2001-01-31 01:02:27 +03:00
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
function GetThreadTree()
|
2001-03-17 04:59:34 +03:00
|
|
|
{
|
2002-03-29 05:46:01 +03:00
|
|
|
if (gThreadTree) return gThreadTree;
|
|
|
|
gThreadTree = document.getElementById('threadTree');
|
|
|
|
return gThreadTree;
|
2001-03-17 04:59:34 +03:00
|
|
|
}
|
2001-01-31 01:02:27 +03:00
|
|
|
|
2001-03-17 04:59:34 +03:00
|
|
|
function GetThreadPaneFolder()
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
return gDBView.msgFolder;
|
|
|
|
}
|
|
|
|
catch (ex) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
2001-01-31 01:02:27 +03:00
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
function EnsureRowInThreadTreeIsVisible(index)
|
2001-03-17 04:59:34 +03:00
|
|
|
{
|
2002-03-16 06:12:58 +03:00
|
|
|
if (index < 0)
|
|
|
|
return;
|
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
var tree = GetThreadTree();
|
|
|
|
tree.treeBoxObject.ensureRowIsVisible(index);
|
2000-06-30 10:02:30 +04:00
|
|
|
}
|
2001-08-15 09:07:48 +04:00
|
|
|
|
2002-08-30 08:20:06 +04:00
|
|
|
function RerootThreadPane()
|
|
|
|
{
|
|
|
|
var treeView = gDBView.QueryInterface(Components.interfaces.nsITreeView);
|
|
|
|
if (treeView)
|
|
|
|
{
|
|
|
|
var tree = GetThreadTree();
|
|
|
|
tree.boxObject.QueryInterface(Components.interfaces.nsITreeBoxObject).view = treeView;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-08-15 09:07:48 +04:00
|
|
|
function ThreadPaneOnLoad()
|
|
|
|
{
|
2002-03-29 05:46:01 +03:00
|
|
|
var tree = GetThreadTree();
|
2002-03-14 05:40:51 +03:00
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
tree.addEventListener("click",ThreadPaneOnClick,true);
|
2003-09-17 23:52:23 +04:00
|
|
|
|
2002-03-14 05:40:51 +03:00
|
|
|
// The mousedown event listener below should only be added in the thread
|
|
|
|
// pane of the mailnews 3pane window, not in the advanced search window.
|
2002-03-29 05:46:01 +03:00
|
|
|
if(tree.parentNode.id == "searchResultListBox")
|
2002-03-14 05:40:51 +03:00
|
|
|
return;
|
|
|
|
|
2002-03-29 05:46:01 +03:00
|
|
|
tree.addEventListener("mousedown",TreeOnMouseDown,true);
|
2002-03-14 05:40:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function ThreadPaneSelectionChanged()
|
|
|
|
{
|
2002-03-29 05:46:01 +03:00
|
|
|
var treeBoxObj = GetThreadTree().treeBoxObject;
|
|
|
|
var treeSelection = treeBoxObj.selection;
|
2002-04-19 02:32:25 +04:00
|
|
|
if (!gRightMouseButtonDown)
|
2002-03-29 05:46:01 +03:00
|
|
|
treeBoxObj.view.selectionChanged();
|
2001-08-15 09:07:48 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
addEventListener("load",ThreadPaneOnLoad,true);
|