mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
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:
parent
de1fe7dcea
commit
f65311bb20
@ -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 = "";
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user