Bug 808377 - Ensure that View -> Sidebar -> Social does not appear if social is disabled. r+a=gavin

This commit is contained in:
Mark Hammond 2012-11-05 17:47:42 -08:00
Родитель 67be913b5c
Коммит 121650928b
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -994,6 +994,8 @@ var SocialSidebar = {
// Hide the toggle menu item if the sidebar cannot appear
let command = document.getElementById("Social:ToggleSidebar");
command.hidden = !this.canShow;
// Bug 772808 - hidden on the command isn't inherited by menuitems.
document.getElementById("menu_socialSidebar").hidden = !this.canShow;
// Hide the sidebar if it cannot appear, or has been toggled off.
// Also set the command "checked" state accordingly.