Bug 1455496 - Part 1. Hide toolbar of scratchpad panel. r=dao

The scratchpad panel(in the toolbox) should not display menu bar.
This patch will hide this menu bar if target is toolbox.
This commit is contained in:
Mantaroh Yoshinaga 2018-04-23 09:25:59 +09:00
parent de1fe7dcea
commit f65311bb20
2 changed files with 4 additions and 4 deletions

View File

@ -337,14 +337,14 @@ var Scratchpad = {
* Hide the menu bar.
*/
hideMenu: function SP_hideMenu() {
document.getElementById("sp-menubar").style.display = "none";
document.getElementById("sp-menu-toolbar").style.display = "none";
},
/**
* Show the menu bar.
*/
showMenu: function SP_showMenu() {
document.getElementById("sp-menubar").style.display = "";
document.getElementById("sp-menu-toolbar").style.display = "";
},
/**

View File

@ -141,8 +141,8 @@
</keyset>
<toolbar type="menubar">
<menubar id="sp-menubar">
<toolbar type="menubar" id="sp-menu-toolbar">
<menubar>
<menu id="sp-file-menu" label="&fileMenu.label;" accesskey="&fileMenu.accesskey;">
<menupopup id="sp-menu-filepopup">
<menuitem id="sp-menu-newscratchpad"