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

Commit 6e3654b

Browse files
committed
use time_taken on finish exam
1 parent ae08424 commit 6e3654b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

runestone/timed/js/timed.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,11 @@ export default class Timed extends RunestoneBase {
392392
$(
393393
"ul#pageNums > ul > li:eq(" + this.currentQuestionIndex + ")"
394394
).addClass("active");
395-
if ($("ul#pageNums > ul > li:eq(" + this.currentQuestionIndex + ")"
396-
).hasClass("flagcolor")){ // checking for class
395+
if ($("ul#pageNums > ul > li:eq(" + this.currentQuestionIndex + ")"
396+
).hasClass("flagcolor")) { // checking for class
397397
this.flagButton.innerHTML = "Unflag Question"; // changes text on button
398398
}
399-
else{
399+
else {
400400
this.flagButton.innerHTML = "Flag Question"; // changes text on button
401401
}
402402
}
@@ -441,11 +441,11 @@ export default class Timed extends RunestoneBase {
441441
$(
442442
"ul#pageNums > ul > li:eq(" + this.currentQuestionIndex + ")"
443443
).addClass("active");
444-
if ($("ul#pageNums > ul > li:eq(" + this.currentQuestionIndex + ")" // checking for flagcolor class
445-
).hasClass("flagcolor")){
444+
if ($("ul#pageNums > ul > li:eq(" + this.currentQuestionIndex + ")" // checking for flagcolor class
445+
).hasClass("flagcolor")) {
446446
this.flagButton.innerHTML = "Unflag Question";
447447
}
448-
else{
448+
else {
449449
this.flagButton.innerHTML = "Flag Question";
450450
}
451451
await this.renderTimedQuestion();
@@ -1071,7 +1071,7 @@ export default class Timed extends RunestoneBase {
10711071
correct: this.score,
10721072
incorrect: this.incorrect,
10731073
skipped: this.skipped,
1074-
time: this.timeTaken,
1074+
time_taken: this.timeTaken,
10751075
});
10761076
}
10771077
shouldUseServer(data) {

0 commit comments

Comments
 (0)