mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
122713 r=ssu sr=mscott. fixing 'w'- watchThread to not interfere with quick search.
This commit is contained in:
parent
f014542c7c
commit
1da50ef5df
@ -325,7 +325,7 @@ var DefaultController =
|
|||||||
case "cmd_killThread":
|
case "cmd_killThread":
|
||||||
return ((GetNumSelectedMessages() == 1) && MailAreaHasFocus() && IsViewNavigationItemEnabled());
|
return ((GetNumSelectedMessages() == 1) && MailAreaHasFocus() && IsViewNavigationItemEnabled());
|
||||||
case "cmd_watchThread":
|
case "cmd_watchThread":
|
||||||
if ((GetNumSelectedMessages() == 1) && gDBView)
|
if (MailAreaHasFocus() && (GetNumSelectedMessages() == 1) && gDBView)
|
||||||
gDBView.getCommandStatus(nsMsgViewCommandType.toggleThreadWatched, enabled, checkStatus);
|
gDBView.getCommandStatus(nsMsgViewCommandType.toggleThreadWatched, enabled, checkStatus);
|
||||||
return enabled.value;
|
return enabled.value;
|
||||||
case "cmd_createFilterFromPopup":
|
case "cmd_createFilterFromPopup":
|
||||||
@ -1043,7 +1043,7 @@ function SearchBarToggled()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*we have to initialize searchInput because we cannot do it when searchBox is hidden */
|
/*we have to initialize searchInput because we cannot do it when searchBox is hidden */
|
||||||
var searchInput = document.getElementById('searchInput');
|
var searchInput = GetSearchInput();
|
||||||
searchInput.value="";
|
searchInput.value="";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user