www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c39a489ca92a64914b6f9ecf82d35eadb822cd7b
parent 7ebc59ee2eff5687a8b668d38b3fc15978d62864
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 20 Jul 2012 13:37:03 -0400

Fix deleting citations if dialog is cancelled

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1796,6 +1796,9 @@ Zotero.Integration.CitationEditInterface = function(citation, field, fieldGetter me._fieldIndex = fieldIndex; return me._acceptDeferred.promise; }).then(function(progressCallback) { + if(!me.citation.citationItems.length) { + throw new Zotero.Exception.UserCancelled("inserting citation"); + } me._fieldGetter.progressCallback = progressCallback; return me._updateSession(true); }).then(function() {