This repository was archived by the owner on Jun 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 2222
2323# Third Party library
2424# -------------------
25- import boto3 , botocore
25+ import boto3 , botocore # for the S3 API
2626from dateutil .parser import parse
2727from rs_grading import _get_assignment , send_lti_grades
2828from runestone import cmap
Original file line number Diff line number Diff line change @@ -433,6 +433,13 @@ async function showPeerEnableVote2() {
433433 $ ( ".runestone [type=radio]" ) . prop ( "checked" , false ) ;
434434 $ ( ".runestone [type=checkbox]" ) . prop ( "checked" , false ) ;
435435 studentVoteCount += 1 ;
436+ studentSubmittedVote2 = false ;
437+ let checkme = document . querySelector ( ".runestone button" ) ;
438+ if ( checkme . innerHTML === "Check Me" ) {
439+ checkme . addEventListener ( "click" , function ( event ) {
440+ studentSubmittedVote2 = true ;
441+ } ) ;
442+ }
436443}
437444
438445$ ( function ( ) {
Original file line number Diff line number Diff line change @@ -55,12 +55,13 @@ <h4>A discussion for you to consider</h4>
5555 setTimeout ( connect , 1000 ) ;
5656 } ) ;
5757 var studentVoteCount = 1 ;
58+ var studentSubmittedVote2 = false ;
5859 var vote2done = false ;
5960 var nextQuestionNumber = { { = nextQnum} } ;
6061 var assignId = '{{=assignment_id}}'
6162
6263 function checkVoteCount ( ) {
63- if ( studentVoteCount < 2 ) {
64+ if ( studentVoteCount < 2 || studentSubmittedVote2 == false ) {
6465 alert ( "You must vote twice before moving on" ) ;
6566 return false ;
6667 }
You can’t perform that action at this time.
0 commit comments