Fix QuickFormat bubble updating when editing citation properties
This commit is contained in:
parent
b62b479ae4
commit
21e51f771c
1 changed files with 3 additions and 3 deletions
|
@ -227,7 +227,7 @@ var Zotero_QuickFormat = new function () {
|
||||||
var prevNode = node.previousSibling;
|
var prevNode = node.previousSibling;
|
||||||
if(prevNode && prevNode.citationItem && prevNode.citationItem.locator) {
|
if(prevNode && prevNode.citationItem && prevNode.citationItem.locator) {
|
||||||
prevNode.citationItem.locator += str;
|
prevNode.citationItem.locator += str;
|
||||||
prevNode.value = _buildBubbleString(prevNode.citationItem);
|
prevNode.textContent = _buildBubbleString(prevNode.citationItem);
|
||||||
node.nodeValue = "";
|
node.nodeValue = "";
|
||||||
_clearEntryList();
|
_clearEntryList();
|
||||||
return;
|
return;
|
||||||
|
@ -244,7 +244,7 @@ var Zotero_QuickFormat = new function () {
|
||||||
var prevNode = node.previousSibling;
|
var prevNode = node.previousSibling;
|
||||||
if(prevNode && prevNode.citationItem) {
|
if(prevNode && prevNode.citationItem) {
|
||||||
prevNode.citationItem.locator = m[2];
|
prevNode.citationItem.locator = m[2];
|
||||||
prevNode.value = _buildBubbleString(prevNode.citationItem);
|
prevNode.textContent = _buildBubbleString(prevNode.citationItem);
|
||||||
node.nodeValue = "";
|
node.nodeValue = "";
|
||||||
_clearEntryList();
|
_clearEntryList();
|
||||||
return;
|
return;
|
||||||
|
@ -1237,7 +1237,7 @@ var Zotero_QuickFormat = new function () {
|
||||||
} else {
|
} else {
|
||||||
delete panelRefersToBubble.citationItem["suppress-author"];
|
delete panelRefersToBubble.citationItem["suppress-author"];
|
||||||
}
|
}
|
||||||
panelRefersToBubble.value = _buildBubbleString(panelRefersToBubble.citationItem);
|
panelRefersToBubble.textContent = _buildBubbleString(panelRefersToBubble.citationItem);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue