From 23550f29513faf1270b7e1db9100162c9febd71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 16 Jan 2020 11:51:40 +0200 Subject: [PATCH] More citation dialog locator fixes Both typing 123 and typing p.123 adds the locator to the most recently added node --- chrome/content/zotero/integration/quickFormat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index ea3010b5aa..91baa18324 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -262,7 +262,7 @@ var Zotero_QuickFormat = new function () { if(m.index === 0) { // add to previous cite var node = _getCurrentEditorTextNode(); - var prevNode = node.previousSibling; + var prevNode = locatorLocked ? node.previousSibling : locatorNode; let citationItem = JSON.parse(prevNode && prevNode.dataset.citationItem || "null"); if (citationItem) { citationItem.locator = m[2];