use oncommand, not onclick, for the link toolbar. Bug 139157,

r=sballard@netreach.net, sr=jag
This commit is contained in:
bzbarsky%mit.edu 2006-09-14 06:02:58 +00:00
parent 51421e3786
commit 330054aca4
2 changed files with 3 additions and 6 deletions

View File

@ -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;

View File

@ -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"