www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8b0f8c3fdf8ef130a1dd324981bd1ae421399e38
parent 4666ae972ccd713369436e2b582b5d778ec821b1
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu,  1 Sep 2011 01:11:06 +0000

Keep add citation dialog raised whenever Firefox is in the foreground, and add hidden pref extensions.zotero.integration.keepAddCitationDialogRaised to keep dialog raised at all times


Diffstat:
Mchrome/content/zotero-platform/win/integration.css | 6++++--
Mchrome/content/zotero/integration/quickFormat.js | 4++++
Mchrome/content/zotero/xpcom/integration.js | 7+++++--
3 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero-platform/win/integration.css b/chrome/content/zotero-platform/win/integration.css @@ -1,6 +1,5 @@ #quick-format-dialog { background: transparent; - -moz-appearance: -moz-win-borderless-glass; padding: 0; } @@ -24,10 +23,13 @@ #quick-format-entry { background: -moz-linear-gradient(-90deg, rgb(243,123,119) 0, rgb(180,47,38) 50%, rgb(156,36,27) 50%); - -moz-border-radius:15px; padding: 10px; } +#quick-format-entry:not([square="true"]) { + -moz-border-radius: 15px; +} + #zotero-icon { margin: 2px 0 0 2px; -moz-appearance: none; diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -51,6 +51,10 @@ var Zotero_QuickFormat = new function () { qfb.addEventListener("keypress", _onQuickSearchKeyPress, false); qfe = qfiDocument.getElementById("quick-format-editor"); + if(Zotero.isWin && Zotero.Prefs.get('integration.keepAddCitationDialogRaised')) { + qfb.setAttribute("square", "true"); + } + // add labels to popup var locators = Zotero.Cite.labels; var menu = document.getElementById("locator-label"); diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1986,10 +1986,13 @@ Zotero.Integration.Session.prototype.editCitation = function(index, noteIndex, c // citeproc-js style object for use of third-party extension io.style = this.style; + if(Zotero.Prefs.get("integration.useClassicAddCitationDialog")) { - this._displayDialog('chrome://zotero/content/integration/addCitationDialog.xul', 'resizable', io); + this._displayDialog('chrome://zotero/content/integration/addCitationDialog.xul', 'alwaysRaised,resizable', io); } else { - this._displayDialog('chrome://zotero/content/integration/quickFormat.xul', '', io); + var mode = (!Zotero.isMac && Zotero.Prefs.get('integration.keepAddCitationDialogRaised') + ? 'popup' : 'alwaysRaised') + this._displayDialog('chrome://zotero/content/integration/quickFormat.xul', mode, io); } if(io.citation.citationItems.length) { // we have an item