Fix cancelling editing of citations

This commit is contained in:
Simon Kornblith 2011-12-18 16:08:48 -05:00
parent 917d928d79
commit 449eae031f

View File

@ -1388,9 +1388,11 @@ Zotero.Integration.Fields.prototype.addEditCitation = function(field, callback)
me.updateSession(doAccept);
}
});
} else if(newField) {
// New citation was cancelled
field.delete();
} else {
if(newField) {
// New citation was cancelled
field.delete();
}
callback();
}
}