This commit is contained in:
Ross
2022-06-26 19:59:01 +01:00
parent 7ff54423b9
commit 455be37922
3 changed files with 28 additions and 8 deletions
+10 -1
View File
@@ -104,7 +104,16 @@
$(document).ready(() => {
$("#email-results-button").click((evt) => {
if (confirm("This will email results, please make sure scores have been refreshed before continuing")) {
window.location = "{% url 'rapids:exam_report_email' exam_id=exam.pk %}";
let additional_email = prompt("Please enter an additional email to send to (user and supervisor will automatically be used if available) if required");
let url = "{% url 'rapids:exam_report_email' exam_id=exam.pk %}";
if ( additional_email != null ) {
url = url + "?additional_email="+encodeURI(additional_email)
}
window.location = url;
}
evt.preventDefault();