Change "More information" link in identity popup to button. b=414872, r=gavin, ui-r=beltzner, a=beltzner

This commit is contained in:
johnath@mozilla.com 2008-02-06 10:12:54 -08:00
Родитель 8d96d623a6
Коммит 8967aa6ec1
2 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -5799,14 +5799,12 @@ IdentityHandler.prototype = {
}, },
/** /**
* Handler for mouseclicks on the "Tell me more about this website" link text * Handler for mouseclicks on the "More Information" button in the
* in the "identity-popup" panel. * "identity-popup" panel.
*/ */
handleMoreInfoClick : function(event) { handleMoreInfoClick : function(event) {
if (event.button == 0) { displaySecurityInfo();
displaySecurityInfo(); event.stopPropagation();
event.stopPropagation();
}
}, },
/** /**

Просмотреть файл

@ -168,7 +168,7 @@
<!-- Popup for site identity information --> <!-- Popup for site identity information -->
<panel id="identity-popup" position="after_start" hidden="true" noautofocus="true" <panel id="identity-popup" position="after_start" hidden="true" noautofocus="true"
onpopupshown="document.getElementById('identity-popup-more-info-link').focus();" onpopupshown="document.getElementById('identity-popup-more-info-button').focus();"
onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true"> onpopuphidden="focusAndSelectUrlBar();" norestorefocus="true">
<hbox id="identity-popup-container" align="top"> <hbox id="identity-popup-container" align="top">
<image id="identity-popup-icon"/> <image id="identity-popup-icon"/>
@ -189,12 +189,14 @@
<description id="identity-popup-encryption-label" flex="1"/> <description id="identity-popup-encryption-label" flex="1"/>
</hbox> </hbox>
<spacer flex="1"/> <spacer flex="1"/>
<!-- Footer link to page info --> <!-- Footer button to open security page info -->
<label id="identity-popup-more-info-link" <hbox>
class="text-link plain" <spacer flex="1"/>
value="&identity.moreInfoLinkText;" <button id="identity-popup-more-info-button"
onblur="getIdentityHandler().hideIdentityPopup();" label="&identity.moreInfoLinkText;"
onclick="getIdentityHandler().handleMoreInfoClick(event);"/> onblur="getIdentityHandler().hideIdentityPopup();"
oncommand="getIdentityHandler().handleMoreInfoClick(event);"/>
</hbox>
</vbox> </vbox>
</hbox> </hbox>
</panel> </panel>