mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-11 14:28:42 +00:00
use oncommand, not onclick, for the link toolbar. Bug 139157,
r=sballard@netreach.net, sr=jag
This commit is contained in:
parent
51421e3786
commit
330054aca4
@ -145,13 +145,10 @@ function()
|
||||
}
|
||||
}
|
||||
|
||||
/* called whenever something on the toolbar is clicked */
|
||||
LinkToolbarUI.prototype.clicked =
|
||||
/* called whenever something on the toolbar gets an oncommand event */
|
||||
LinkToolbarUI.prototype.commanded =
|
||||
function(event)
|
||||
{
|
||||
// Only handle primary click. Change this if we get a context menu
|
||||
if (0 != event.button) return;
|
||||
|
||||
// Return if this is one of the menubuttons.
|
||||
if (event.target.getAttribute("type") == "menu") return;
|
||||
|
||||
|
@ -80,7 +80,7 @@
|
||||
|
||||
<toolbox id="navigator-toolbox">
|
||||
<toolbar id="linktoolbar" class="chromeclass-directories"
|
||||
onclick="event.preventBubble(); return linkToolbarUI.clicked(event);"
|
||||
oncommand="event.preventBubble(); return linkToolbarUI.commanded(event);"
|
||||
tbautostretch="always" hidden="true" hasitems="false">
|
||||
|
||||
<toolbarbutton id="link-top" class="bookmark-item"
|
||||
|
Loading…
x
Reference in New Issue
Block a user