Bug 414628 – right clicking on links in addons manager acts as a left click. r=rstrong

This commit is contained in:
Régis Caspar 2008-08-14 21:22:40 +02:00
parent f6a7065993
commit ce960a7bcb
3 changed files with 7 additions and 7 deletions

View File

@ -62,7 +62,7 @@
<label id="extensionCreatorLabel" class="sectionTitle">&creator.label;</label>
<hbox id="creatorBox" class="boxIndent">
<label id="extensionCreator" flex="1" crop="right"/>
<label id="extensionHomepage" onclick="loadHomepage(event);"
<label id="extensionHomepage" onclick="if (event.button == 0) { loadHomepage(event); }"
class="text-link" value="&homepage.label;"/>
</hbox>

View File

@ -216,7 +216,7 @@
<xul:hbox flex="1" class="blocklistedBox attention" align="center">
<xul:label value="&blocklisted.label;" crop="end"/>
<xul:label anonid="blocklistMoreInfo" class="text-link" value="&moreInfo.label;"
onclick="openURL(this.getAttribute('moreInfoURL'));"/>
onclick="if (event.button == 0) { openURL(this.getAttribute('moreInfoURL')); }" />
</xul:hbox>
</xul:vbox>
<xul:hbox anonid="selectedButtons" flex="1" class="selectedButtons">
@ -507,7 +507,7 @@
<xul:hbox pack="start">
<xul:label class="addonLearnMore text-link" xbl:inherits="homepageURL"
value="&searchResultHomepage.value;"
onclick="openURL(this.getAttribute('homepageURL'));"/>
onclick="if (event.button == 0) { openURL(this.getAttribute('homepageURL')); }"/>
</xul:hbox>
<xul:spacer flex="1"/>
<xul:hbox anonid="selectedButtons" class="selectedButtons">
@ -615,7 +615,7 @@
<binding id="status-footer-recommended">
<content align="end">
<xul:label class="text-link" xbl:inherits="recommendedURL=link" value="&recommendedResults.label;"
onclick="openURL(this.getAttribute('recommendedURL'));"/>
onclick="if (event.button == 0) { openURL(this.getAttribute('recommendedURL')); }" />
</content>
</binding>
@ -623,7 +623,7 @@
<content align="stretch">
<xul:hbox align="center">
<xul:label class="text-link" xbl:inherits="searchURL=link" anonid="searchLink"
onclick="openURL(this.getAttribute('searchURL'));"/>
onclick="if (event.button == 0) { openURL(this.getAttribute('searchURL')); }"/>
<xul:spacer flex="1"/>
<xul:button command="cmd_resetSearch" label="&resetSearch.label;"/>
</xul:hbox>

View File

@ -188,7 +188,7 @@
oncommand="retrieveRepositoryAddons(this.value);"/>
<spacer flex="1"/>
<label id="browseAddons" class="text-link" value="&browseAddons.label;"
onclick="openURL(this.getAttribute('homepageURL'));"/>
onclick="if (event.button == 0) { openURL(this.getAttribute('homepageURL')); }"/>
</hbox>
<hbox flex="1">
@ -259,7 +259,7 @@
command="cmd_checkUpdatesAll"/>
<spacer flex="1"/>
<label id="getMore" class="text-link"
onclick="openURL(this.getAttribute('getMoreURL'));"
onclick="if (event.button == 0) { openURL(this.getAttribute('getMoreURL')); }"
valuethemes="&getThemes.label;"
valueplugins="&getPlugins.label;"
valueextensions="&getExtensions.label;"/>