Rounded add citation dialog

This commit is contained in:
Simon Kornblith 2011-07-22 07:05:08 +00:00
parent 1650af161a
commit 68cbef118f
2 changed files with 17 additions and 4 deletions

View file

@ -70,6 +70,7 @@ var Zotero_Citation_Dialog = new function () {
* initialize add citation dialog
*/
function load() {
document.documentElement.setAttribute("drawintitlebar", "true");
document.documentElement.getButton("extra1").label = Zotero.getString("citation.multipleSources");
document.documentElement.getButton("extra2").label = Zotero.getString("citation.showEditor");

View file

@ -38,12 +38,14 @@
width="600" height="450"
onload="Zotero_Citation_Dialog.load();"
onunload="doUnload();"
ondialogaccept="return Zotero_Citation_Dialog.accept();"
ondialogcancel="Zotero_Citation_Dialog.cancel();"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
persist="screenX screenY width height"
resizable="true"
style="background: transparent; -moz-appearance:none; padding: 0"
chromemargin="0, 0, 0, 0"
buttons="extra1,extra2,accept,cancel"
ondialogaccept="return Zotero_Citation_Dialog.accept();"
ondialogcancel="Zotero_Citation_Dialog.cancel();"
ondialogextra2="Zotero_Citation_Dialog.toggleEditor()"
ondialogextra1="Zotero_Citation_Dialog.toggleMultipleSources()">
@ -51,7 +53,7 @@
<script src="../selectItemsDialog.js"/>
<script src="addCitationDialog.js"/>
<vbox id="zotero-select-items-container" flex="1">
<vbox id="zotero-select-items-container" style="background: rgba(239,239,239,0.9); border-radius:15px; padding: 5px;" flex="1">
<vbox flex="1">
<hbox flex="1">
<vbox align="stretch" flex="1">
@ -201,5 +203,15 @@
<textbox id="editor" type="styled" mode="integration" hidden="true" flex="1"/>
<!-- TODO: localize -->
<description id="zotero-editor-warning" style="margin: 9px 1px 0" hidden="true">Warning: If you edit a citation in the editor it will no longer update to reflect changes in your database or the citation style.</description>
<hbox>
<hbox flex="1">
<button dlgtype="extra1"/>
<button dlgtype="extra2"/>
</hbox>
<hbox>
<button dlgtype="cancel"/>
<button dlgtype="accept"/>
</hbox>
</hbox>
</vbox>
</dialog>