зеркало из https://github.com/mozilla/pjs.git
Bug 280415 "Save As Page..." menu item disappears if no window open
p=me r=timeless sr=neil.parkwaycc.co.uk a=caillon
This commit is contained in:
Родитель
44585413d7
Коммит
524bfd3902
|
@ -1372,7 +1372,7 @@ function BrowserEditBookmarks()
|
|||
function updateCloseItems()
|
||||
{
|
||||
var browser = getBrowser();
|
||||
if (browser.getStripVisibility()) {
|
||||
if (browser && browser.getStripVisibility()) {
|
||||
document.getElementById('menu_close').setAttribute('label', gNavigatorBundle.getString('tabs.closeTab'));
|
||||
document.getElementById('menu_closeWindow').hidden = false;
|
||||
document.getElementById('menu_closeOtherTabs').hidden = false;
|
||||
|
@ -1685,7 +1685,7 @@ function hiddenWindowStartup()
|
|||
|
||||
// Disable menus which are not appropriate
|
||||
var disabledItems = ['cmd_close', 'Browser:SendPage', 'Browser:EditPage',
|
||||
'cmd_printSetup', /*'Browser:PrintPreview',*/
|
||||
'Browser:SavePage', 'cmd_printSetup', /*'Browser:PrintPreview',*/
|
||||
'Browser:Print', 'canGoBack', 'canGoForward',
|
||||
'Browser:Home', 'Browser:AddBookmark',
|
||||
'Browser:AddBookmarkAs', 'Browser:AddGroupmarkAs',
|
||||
|
|
Загрузка…
Ссылка в новой задаче