Open CSL tools as chrome and use native controls (#3908)
This commit is contained in:
parent
db5db03c9c
commit
0b04a518e7
2 changed files with 8 additions and 4 deletions
|
@ -59,10 +59,10 @@
|
||||||
<hbox>
|
<hbox>
|
||||||
<button id="openCSLEdit"
|
<button id="openCSLEdit"
|
||||||
label="&zotero.preferences.styleEditor;"
|
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"
|
<button id="openCSLPreview"
|
||||||
label="&zotero.preferences.stylePreview;"
|
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>
|
</hbox>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
<button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Preview.refresh()"/>
|
<button id="preview-refresh-button" label="&zotero.general.refresh;" oncommand="Zotero_CSL_Preview.refresh()"/>
|
||||||
|
|
||||||
<label value="&styles.preview.citationFormat;" />
|
<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>
|
<menupopup>
|
||||||
<menuitem value="all" label="&styles.preview.citationFormat.all;"/>
|
<menuitem value="all" label="&styles.preview.citationFormat.all;"/>
|
||||||
<menuitem value="author" label="&styles.preview.citationFormat.author;"/>
|
<menuitem value="author" label="&styles.preview.citationFormat.author;"/>
|
||||||
|
@ -57,9 +57,13 @@
|
||||||
</menupopup>
|
</menupopup>
|
||||||
</menulist>
|
</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>
|
</hbox>
|
||||||
<iframe id="zotero-csl-preview-box" flex="1" overflow="auto" type="content"/>
|
<iframe id="zotero-csl-preview-box" flex="1" overflow="auto" type="content"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
|
<keyset>
|
||||||
|
<key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/>
|
||||||
|
</keyset>
|
||||||
|
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in a new issue