зеркало из https://github.com/mozilla/pjs.git
fix for bug #73515. delete button should disable in advanced news searches
(as we don't allow you to delete (cancel) from that dialog.) r/sr=bienvenu
This commit is contained in:
Родитель
0c9c71b1b7
Коммит
edc0552e70
|
@ -79,6 +79,11 @@ var nsSearchResultsController =
|
|||
if (GetNumSelectedMessages() != 1)
|
||||
enabled = false;
|
||||
break;
|
||||
case "button_delete":
|
||||
// this assumes that advanced searches don't cross accounts
|
||||
if (GetNumSelectedMessages() <= 0 || isNewsURI(gSearchView.getURIForViewIndex(0)))
|
||||
enabled = false;
|
||||
break;
|
||||
default:
|
||||
if (GetNumSelectedMessages() <= 0)
|
||||
enabled = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче