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
|
@ -583,6 +583,7 @@ var Zotero_Citation_Dialog = new function () {
|
||||||
_getCitation();
|
_getCitation();
|
||||||
Zotero.debug("got citation");
|
Zotero.debug("got citation");
|
||||||
var isCustom = _previewShown && io.citation.citationItems.length // if a citation is selected
|
var isCustom = _previewShown && io.citation.citationItems.length // if a citation is selected
|
||||||
|
&& _originalHTML
|
||||||
&& document.getElementById('editor').value != _originalHTML // and citation has been edited
|
&& document.getElementById('editor').value != _originalHTML // and citation has been edited
|
||||||
|
|
||||||
if(isCustom) {
|
if(isCustom) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user