rest of fix to #16336, hide "Get Next [x] News Message" menu item when not reading news.
change [x] based on the server prefs.

r=mscott
This commit is contained in:
sspitzer%netscape.com 2000-09-01 00:55:11 +00:00
Родитель 06908942d1
Коммит 847e6c3bc6
2 изменённых файлов: 13 добавлений и 3 удалений

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

@ -666,9 +666,19 @@ function IsGetNextNMessagesEnabled()
var server = folder.server;
var serverType = server.type;
if((serverType == "nntp"))
var menuItem = document.getElementById("menu_getnextnmsg");
if((serverType == "nntp")) {
var newsServer = server.QueryInterface(Components.interfaces.nsINntpIncomingServer);
var menuValue = Bundle.formatStringFromName("getNextNMessages",
[ newsServer.maxArticles], 1);
menuItem.setAttribute("value",menuValue);
menuItem.setAttribute("hidden","false");
return true;
else return false;
}
else {
menuItem.setAttribute("hidden","true");
return false;
}
}
function IsEmptyTrashEnabled()

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

@ -573,7 +573,7 @@ Rights Reserved.
accesskey="&getNewMsgCmd.accesskey;"
key="key_getNewMessages"
observes="cmd_getNewMessages"/>
<menuitem value="&getNextNMsgCmd.label;"
<menuitem id="menu_getnextnmsg" value="&getNextNMsgCmd.label;"
observes="cmd_getNextNMessages"/>
<menuitem value="&sendUnsentCmd.label;"
accesskey="&sendUnsentCmd.accesskey;"