in js/details.js [910:943]
function invokeRedirectTo() {
document.getElementById('autofill-user-search').disabled = true;
document.getElementById("prompt-redirect-to-confirm-to").value = "";
$('#autofill-user-search').empty();
ChangeList = getCheckedBugIds();
// Can handle multiple bugs
if (!ChangeList.length)
return;
let bug = getBugRec(ChangeList[0]);
if (bug == null)
return;
document.getElementById('prompt-redirect-to-confirm-bugcount').textContent = ChangeList.length;
let dlg = document.getElementById("prompt-redirect-to-confirm");
dlg.returnValue = "cancel";
dlg.addEventListener('close', (event) => {
if (dlg.returnValue == 'confirm') {
let comment = document.getElementById("prompt-redirect-to-confirm-comment").value;
if (!comment.length) {
comment = null;
}
let to = getRedirectToAccount();
queueChanges('redirect-flag-to', comment, to);
} else {
// Update buttons after cancel
updateButtonsState();
}
}, { once: true });
dlg.show();
}