mirror of
https://github.com/zotero/zotero.git
synced 2026-09-24 00:51:37 +00:00
Ensure that document refresh doesn't perform needless text writes
This commit is contained in:
parent
92346c8fb9
commit
25d8898ab0
1 changed files with 2 additions and 2 deletions
|
|
@ -1007,8 +1007,8 @@ Zotero.Integration.Fields.prototype._updateDocument = async function(forceCitati
|
||||||
var plainCitation = citation.properties.plainCitation && citationField.getText();
|
var plainCitation = citation.properties.plainCitation && citationField.getText();
|
||||||
|
|
||||||
// Update citation text:
|
// Update citation text:
|
||||||
// If we're not specifically *not* trying to regen text
|
// If we're looking to reset the text even if it matches previous text
|
||||||
if (forceCitations != FORCE_CITATIONS_FALSE
|
if (forceCitations == FORCE_CITATIONS_RESET_TEXT
|
||||||
// Or metadata has changed thus changing the formatted citation
|
// Or metadata has changed thus changing the formatted citation
|
||||||
|| (citation.properties.formattedCitation !== formattedCitation)) {
|
|| (citation.properties.formattedCitation !== formattedCitation)) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue