Add some temporary logging for Mac users getting empty citation dialog

https://forums.zotero.org/discussion/82697/empty-citation-dialog-after-clicking-add-edit-citation-on-an-existing-citation
This commit is contained in:
Adomas Venčkauskas 2020-04-23 11:40:16 +03:00
parent 2c046a227b
commit 30d40d6094
2 changed files with 5 additions and 0 deletions

View file

@ -52,6 +52,9 @@ var Zotero_QuickFormat = new function () {
if(event.target === document) {
initialized = true;
io = window.arguments[0].wrappedJSObject;
Zotero.debug(`Quick Format received citation:`);
Zotero.debug(JSON.stringify(io.citation.toJSON()));
// Only hide chrome on Windows or Mac
if(Zotero.isMac) {

View file

@ -1270,6 +1270,8 @@ Zotero.Integration.Fields.prototype.addEditCitation = async function (field) {
citation, this._session.style.opt.sort_citations,
fieldIndexPromise, citationsByItemIDPromise, previewFn
);
Zotero.debug(`Editing citation:`);
Zotero.debug(JSON.stringify(citation.toJSON()));
if (Zotero.Prefs.get("integration.useClassicAddCitationDialog")) {
Zotero.Integration.displayDialog('chrome://zotero/content/integration/addCitationDialog.xul',