Bug 957281 - Help button should be positioned at the lower end of the preferences window. r=Mano.

This commit is contained in:
stefanh@inbox.com 2014-04-07 21:16:11 +02:00
Родитель af56e76f7c
Коммит 86c45c7b01
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -572,9 +572,8 @@
<children includes="prefpane"/>
</xul:deck>
</xul:hbox>
<xul:hbox anonid="dlg-buttons" class="prefWindow-dlgbuttons"
<xul:hbox anonid="dlg-buttons" class="prefWindow-dlgbuttons" pack="end">
#ifdef XP_UNIX
>
<xul:button dlgtype="disclosure" class="dialog-button" hidden="true"/>
<xul:button dlgtype="help" class="dialog-button" hidden="true" icon="help"/>
<xul:button dlgtype="extra2" class="dialog-button" hidden="true"/>
@ -583,7 +582,6 @@
<xul:button dlgtype="cancel" class="dialog-button" icon="cancel"/>
<xul:button dlgtype="accept" class="dialog-button" icon="accept"/>
#else
pack="end">
<xul:button dlgtype="extra2" class="dialog-button" hidden="true"/>
<xul:spacer anonid="spacer" flex="1"/>
<xul:button dlgtype="accept" class="dialog-button" icon="accept"/>
@ -612,6 +610,8 @@
#ifdef XP_MACOSX
// no buttons on Mac except Help
cancelButton.hidden = true;
// Move Help button to the end
document.getAnonymousElementByAttribute(this, "anonid", "spacer").hidden = true;
// Also, don't fire onDialogAccept on enter
acceptButton.disabled = true;
#else