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
This commit is contained in:
parent
4666ae972c
commit
8b0f8c3fdf
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user