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:
Simon Kornblith 2011-08-25 22:55:55 +00:00
parent 4afc4a4d82
commit 68c06c14a2

View file

@ -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) {