References #1887, Retrieving editor.value in Zotero_Citation_Dialog._updatePreview() fails
Perform an additional check, just in case the preview pane hasn't fully loaded before the dialog is accepted.
This commit is contained in:
parent
4afc4a4d82
commit
68c06c14a2
1 changed files with 1 additions and 0 deletions
|
@ -583,6 +583,7 @@ var Zotero_Citation_Dialog = new function () {
|
|||
_getCitation();
|
||||
Zotero.debug("got citation");
|
||||
var isCustom = _previewShown && io.citation.citationItems.length // if a citation is selected
|
||||
&& _originalHTML
|
||||
&& document.getElementById('editor').value != _originalHTML // and citation has been edited
|
||||
|
||||
if(isCustom) {
|
||||
|
|
Loading…
Reference in a new issue