Open CSL tools as chrome and use native controls (#3908)

This commit is contained in:
Abe Jellinek 2024-04-02 06:39:17 -04:00 committed by GitHub
parent db5db03c9c
commit 0b04a518e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View file

@ -59,10 +59,10 @@
<hbox>
<button id="openCSLEdit"
label="&zotero.preferences.styleEditor;"
oncommand="Zotero.openInViewer('chrome://zotero/content/tools/csledit.xhtml')"/>
oncommand="window.open('chrome://zotero/content/tools/csledit.xhtml', '_blank', 'chrome,width=950,height=700,resizable')"/>
<button id="openCSLPreview"
label="&zotero.preferences.stylePreview;"
oncommand="Zotero.openInViewer('chrome://zotero/content/tools/cslpreview.xhtml')"/>
oncommand="window.open('chrome://zotero/content/tools/cslpreview.xhtml', '_blank', 'chrome,width=950,height=700,resizable')"/>
</hbox>
</groupbox>
</vbox>

View file

@ -46,7 +46,7 @@
<button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Preview.refresh()"/>
<label value="&styles.preview.citationFormat;" />
<menulist id="citation-format" oncommand="Zotero_CSL_Preview.refresh()">
<menulist id="citation-format" oncommand="Zotero_CSL_Preview.refresh()" native="true">
<menupopup>
<menuitem value="all" label="&styles.preview.citationFormat.all;"/>
<menuitem value="author" label="&styles.preview.citationFormat.author;"/>
@ -57,9 +57,13 @@
</menupopup>
</menulist>
<menulist id="locale-menu" oncommand="Zotero.Prefs.set('export.lastLocale', this.value); Zotero_CSL_Preview.refresh()"/>
<menulist id="locale-menu" oncommand="Zotero.Prefs.set('export.lastLocale', this.value); Zotero_CSL_Preview.refresh()" native="true"/>
</hbox>
<iframe id="zotero-csl-preview-box" flex="1" overflow="auto" type="content"/>
</vbox>
<keyset>
<key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/>
</keyset>
</window>