commit 68c06c14a2c7538dd6ff3bb47c5c5e07418df25d
parent 4afc4a4d824acad2b108b9b2cd26e25b000a6629
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 25 Aug 2011 22:55:55 +0000
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.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/integration/addCitationDialog.js b/chrome/content/zotero/integration/addCitationDialog.js
@@ -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) {