122713 r=ssu sr=mscott. fixing 'w'- watchThread to not interfere with quick search.

This commit is contained in:
naving%netscape.com 2002-02-12 21:37:12 +00:00
Родитель 0c565f8632
Коммит d9e70ee0d9
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -325,7 +325,7 @@ var DefaultController =
case "cmd_killThread":
return ((GetNumSelectedMessages() == 1) && MailAreaHasFocus() && IsViewNavigationItemEnabled());
case "cmd_watchThread":
if ((GetNumSelectedMessages() == 1) && gDBView)
if (MailAreaHasFocus() && (GetNumSelectedMessages() == 1) && gDBView)
gDBView.getCommandStatus(nsMsgViewCommandType.toggleThreadWatched, enabled, checkStatus);
return enabled.value;
case "cmd_createFilterFromPopup":
@ -1043,7 +1043,7 @@ function SearchBarToggled()
else
{
/*we have to initialize searchInput because we cannot do it when searchBox is hidden */
var searchInput = document.getElementById('searchInput');
var searchInput = GetSearchInput();
searchInput.value="";
}
}