Fix QuickFormat bubble updating when editing citation properties

This commit is contained in:
Simon Kornblith 2015-08-13 19:44:35 -04:00
parent b62b479ae4
commit 21e51f771c

View file

@ -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);
}; };
/** /**