This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -383,6 +383,15 @@ export default class Timed extends RunestoneBase {
383383 $ (
384384 "ul#pageNums > ul > li:eq(" + this . currentQuestionIndex + ")"
385385 ) . addClass ( "active" ) ;
386+ if ( $ ( "ul#pageNums > ul > li:eq(" + this . currentQuestionIndex + ")"
387+ ) . hasClass ( "flagcolor" ) ) {
388+ this . flagButton . innerHTML = "Done" ;
389+
390+ }
391+ else {
392+ this . flagButton . innerHTML = "Come Back" ;
393+ }
394+
386395 }
387396
388397 async handleFlag ( event ) {
@@ -403,6 +412,7 @@ export default class Timed extends RunestoneBase {
403412 await this . navigateAway ( ) ;
404413 }
405414 for ( var i = 0 ; i < this . qNumList . childNodes . length ; i ++ ) {
415+ //this.flagButton.innerHTML = "Come Back";
406416 for (
407417 var j = 0 ;
408418 j < this . qNumList . childNodes [ i ] . childNodes . length ;
@@ -424,6 +434,14 @@ export default class Timed extends RunestoneBase {
424434 $ (
425435 "ul#pageNums > ul > li:eq(" + this . currentQuestionIndex + ")"
426436 ) . addClass ( "active" ) ;
437+ if ( $ ( "ul#pageNums > ul > li:eq(" + this . currentQuestionIndex + ")"
438+ ) . hasClass ( "flagcolor" ) ) {
439+ this . flagButton . innerHTML = "Done" ;
440+
441+ }
442+ else {
443+ this . flagButton . innerHTML = "Come Back" ;
444+ }
427445 await this . renderTimedQuestion ( ) ;
428446 this . ensureButtonSafety ( ) ;
429447 }
You can’t perform that action at this time.
0 commit comments