Bug 967583 - 'Get Mail for' button should use pretty server name to avoid issues with newsgroup and feed accounts. r+ui-review=bwinton

This commit is contained in:
Sebastian Hengst 2014-07-02 16:47:58 +02:00
Родитель 6c6a2e573f
Коммит 3d8e0e02f2
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -727,10 +727,9 @@ function SetGetMsgButtonTooltip()
var msgButton = document.getElementById("button-getmsg");
var tooltip = document.getElementById("bundle_messenger").getString("getMsgButtonTooltip");
var listSeparator = document.getElementById("bundle_messenger").getString("getMsgButtonTooltip.listSeparator");
var usernames = new Set([v.server.username for each (v in folders)]);
var usernamesArray = [username for (username of usernames)];
var tooltipUsernames = usernamesArray.join(listSeparator);
msgButton.tooltipText = tooltip.replace('%S', tooltipUsernames);
var names = new Set([v.server.prettyName for each (v in folders)]);
var tooltipNames = Array.from(names).join(listSeparator);
msgButton.tooltipText = tooltip.replace('%S', tooltipNames);
}
function RemoveAllMessageTags()