in js/details.js [842:865]
function invokeClearNIWithComment() {
ChangeList = getCheckedBugIds();
// due to spam protection, can't handle multiple bugs
if (!ChangeList.length || ChangeList.length > 1)
return;
document.getElementById('prompt-comment-confirm-bugcount').textContent = ChangeList.length;
let dlg = document.getElementById("prompt-comment-confirm");
dlg.returnValue = "cancel";
dlg.addEventListener('close', (event) => {
if (dlg.returnValue == 'confirm') {
let comment = document.getElementById("prompt-comment-confirm-comment").value;
if (!comment.length)
comment = null;
queueChanges('clear-flag', comment);
} else {
// Update buttons after cancel
updateButtonsState();
}
}, { once: true });
dlg.show();
}