Removed the workaround - listener stuff to the menus. :)

This commit is contained in:
mgalli%geckonnection.com 2005-08-12 01:59:49 +00:00
parent 42b7fe8803
commit 4ba955beb7
2 changed files with 1 additions and 11 deletions

View File

@ -200,14 +200,6 @@ function MiniNavStartup()
gSelectedTab=currentTab;
loadURI("http://www.google.com/");
//
// this is temporary til we get menu tminig events stuff fixed.
// https://bugzilla.mozilla.org/show_bug.cgi?id=303934
//
document.getElementById("command_BrowserOpenTab").addEventListener("mousedown",BrowserOpenTab,false);
document.getElementById("command_BrowserOpenInfo").addEventListener("mousedown",BrowserOpenInfo,false);
document.getElementById("command_BrowserTestDialogs").addEventListener("mousedown",BrowserTestDialogs,false);
document.getElementById("command_BrowserTestSendSMS").addEventListener("mousedown",BrowserTestSendSMS,false);
}

View File

@ -81,9 +81,7 @@
<menuitem id="menu_close"/>
<menuitem id="menu_closeWindow" command="cmd_closeWindow"
key="key_closeWindow" label="about"/>
<menuitem id="command_BrowserOpenTab" label="new Tab" />
<!-- this only works with keyboard/ oncommand approach, if we use the workaroung (onmousedown),
the menu disappears -->
<menuitem id="command_BrowserOpenTab" command="cmd_BrowserOpenTab" label="new Tab" />
<menu id="menu-zoom" label="Text zoom">
<menupopup >
<menuitem id="" oncommand="BrowserResetZoomPlus()" label="ZOOM + " />