Set the retracted flag for retracted items even if no prompt is required

This commit is contained in:
Adomas Venčkauskas 2019-07-03 23:08:05 +03:00
parent 9efd7cc07d
commit 2186e939a9
2 changed files with 4 additions and 9 deletions

View file

@ -629,8 +629,8 @@ var Zotero_Citation_Dialog = new function () {
if (checkbox.value) {
Zotero.Retractions.disableCitationWarningsForItem({ id: parseInt(item.id) });
}
item.ignoreRetraction = true;
}
item.ignoreRetraction = true;
}
}
}

View file

@ -746,16 +746,11 @@ var Zotero_QuickFormat = new function () {
}
return false;
}
else {
if (checkbox.value) {
Zotero.Retractions.disableCitationWarningsForItem(citationItem);
}
citationItem.ignoreRetraction = true;
if (checkbox.value) {
Zotero.Retractions.disableCitationWarningsForItem(citationItem);
}
}
else {
citationItem.ignoreRetraction = true;
}
citationItem.ignoreRetraction = true;
}
_updateLocator(_getEditorContent());