fx-compat: native="true" on more checkboxes/menulists

This commit is contained in:
Abe Jellinek 2022-06-24 09:11:38 -04:00
parent 0120877623
commit 89587e6b76
6 changed files with 14 additions and 10 deletions

View file

@ -28,7 +28,7 @@
<groupbox id="locale-box">
<hbox align="center">
<label><html:h2>&zotero.bibliography.locale.label;</html:h2></label>
<menulist id="locale-menu" oncommand="Zotero_File_Interface_Bibliography.localeChanged(this.selectedItem.value)"/>
<menulist id="locale-menu" oncommand="Zotero_File_Interface_Bibliography.localeChanged(this.selectedItem.value)" native="true"/>
</hbox>
</groupbox>
<groupbox>

View file

@ -94,6 +94,7 @@ var Zotero_File_Interface_Export = new function() {
let checkbox = document.createXULElement("checkbox");
checkbox.setAttribute("id", OPTION_PREFIX+option);
checkbox.setAttribute("label", optionLabel);
checkbox.setAttribute("native", true);
optionsBox.insertBefore(checkbox, charsetBox);
// Add "Include Annotations" after "Export Files"
@ -108,6 +109,7 @@ var Zotero_File_Interface_Export = new function() {
"label",
Zotero.getString('exportOptions.includeAnnotations')
);
checkbox.setAttribute("native", true);
optionsBox.insertBefore(checkbox, charsetBox);
}
}

View file

@ -8,6 +8,7 @@
]>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&zotero.exportOptions.title;"
onload="Zotero_File_Interface_Export.init()">
<dialog
@ -28,7 +29,7 @@
<vbox id="zotero-export-options-container" flex="1">
<hbox align="center">
<label value="&zotero.exportOptions.format.label;" control="format-menu"/>
<menulist id="format-menu" oncommand="Zotero_File_Interface_Export.updateOptions()">
<menulist id="format-menu" oncommand="Zotero_File_Interface_Export.updateOptions()" native="true">
<menupopup id="format-popup"/>
</menulist>
</hbox>
@ -38,7 +39,7 @@
<vbox id="charset-box" hidden="true">
<separator class="thin"/>
<label value="&zotero.charset.label;:" control="charset-menu"/>
<menulist id="export-option-exportCharset"/>
<menulist id="export-option-exportCharset" native="true"/>
</vbox>
</groupbox>
</vbox>

View file

@ -52,7 +52,7 @@
<separator class="thin"/>
<checkbox id="zotero-hardConfirmationDialog-checkbox" hidden="true" oncommand="Zotero.HardConfirmationDialog.onCheckbox(event)"/>
<checkbox id="zotero-hardConfirmationDialog-checkbox" hidden="true" oncommand="Zotero.HardConfirmationDialog.onCheckbox(event)" native="true"/>
<html:input id="zotero-hardConfirmationDialog-textbox" type="text" hidden="true" onkeyup="Zotero.HardConfirmationDialog.onKeyUp(event)"/>
</vbox>
</hbox>

View file

@ -54,7 +54,8 @@
<separator width="20"/>
<label value="&zotero.tagColorChooser.position;" control="tag-position" disabled="true"/>
<menulist id="tag-position" disabled="true" sizetopopup="always"
oncommand="Zotero_Tag_Color_Chooser.onPositionChange()">
oncommand="Zotero_Tag_Color_Chooser.onPositionChange()"
native="true">
<menupopup/>
</menulist>
</hbox>

View file

@ -45,12 +45,12 @@
<hbox align="center">
<button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Editor.refresh()"/>
<button id="zotero-csl-save" label="&zotero.general.saveAs;" oncommand="Zotero_CSL_Editor.save()"/>
<menulist id="zotero-csl-page-type" style="min-height: 1.6em; min-width: 50px" oncommand="Zotero_CSL_Editor.refresh()" />
<menulist id="zotero-csl-page-type" style="min-height: 1.6em; min-width: 50px" oncommand="Zotero_CSL_Editor.refresh()" native="true" />
<label value=":" />
<textbox size="5" id="preview-pages" type="timed" timeout="250" oncommand="Zotero_CSL_Editor.refresh()"/>
<checkbox oncommand="Zotero_CSL_Editor.refresh()" id="preview-suppress-author" label="&zotero.citation.suppressAuthor.label;" />
<checkbox oncommand="Zotero_CSL_Editor.refresh()" id="preview-suppress-author" label="&zotero.citation.suppressAuthor.label;" native="true" />
<label value="&styles.editor.citePosition;" />
<menulist id="zotero-ref-position" oncommand="Zotero_CSL_Editor.refresh()">
<menulist id="zotero-ref-position" oncommand="Zotero_CSL_Editor.refresh()" native="true">
<menupopup>
<menuitem label="first" value="0"/>
<menuitem label="subsequent" value="1"/>
@ -59,10 +59,10 @@
<menuitem label="near-note" value="4"/>
</menupopup>
</menulist>
<menulist id="locale-menu" oncommand="Zotero.Prefs.set('export.lastLocale', this.value); Zotero_CSL_Editor.refresh()"/>
<menulist id="locale-menu" oncommand="Zotero.Prefs.set('export.lastLocale', this.value); Zotero_CSL_Editor.refresh()" native="true"/>
</hbox>
<hbox align="center">
<menulist id="zotero-csl-list" style="margin-left: 7px; min-height: 1.6em; min-width: 100px" oncommand="Zotero_CSL_Editor.onStyleSelected(this.value)"/>
<menulist id="zotero-csl-list" style="margin-left: 7px; min-height: 1.6em; min-width: 100px" oncommand="Zotero_CSL_Editor.onStyleSelected(this.value)" native="true"/>
</hbox>
<textbox id="zotero-csl-editor" type="timed" timeout="250" multiline="true"
flex="1"