Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 2f49451

Browse files
author
constantinol
committed
flag now disappears when assessment is submitted
1 parent 14e776f commit 2f49451

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

runestone/timed/js/timed.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export default class Timed extends RunestoneBase {
218218
"click",
219219
async function () {
220220
$(this.finishButton).hide(); // hide the finish button for now
221+
$(this.flagButton).show();
221222
let mess = document.createElement("p");
222223
mess.innerHTML =
223224
"<strong>Warning: You will not be able to continue the exam if you close this tab, close the window, or navigate away from this page!</strong> Make sure you click the Finish Exam button when you are done to submit your work!";
@@ -318,6 +319,7 @@ export default class Timed extends RunestoneBase {
318319
this.navDiv.appendChild(this.qNumList);
319320
this.navBtnListeners();
320321
this.flagBtnListener(); // listens for click on flag button
322+
$(this.flagButton).hide();
321323
}
322324

323325
// when moving off of a question in an active exam:
@@ -495,6 +497,7 @@ export default class Timed extends RunestoneBase {
495497
)
496498
) {
497499
await this.finishAssessment();
500+
$(this.flagButton).hide();
498501
}
499502
}.bind(this),
500503
false

0 commit comments

Comments
 (0)