fix spurious "_sortCheckbox is not defined" errors

This commit is contained in:
Simon Kornblith 2009-09-28 22:00:48 +00:00
parent c95c51907e
commit 4beb908dfa

View file

@ -273,7 +273,7 @@ var Zotero_Citation_Dialog = new function () {
*/
function sortCitation() {
io.citation.properties.sort = _sortCheckbox && _sortCheckbox.checked;
if(_sortCheckbox.checked) {
if(io.citation.properties.sort) {
_getCitation();
// delete all existing items from list