Skip to content

Commit

Permalink
Quiz page - fixed bug where single answer mode questions were marked …
Browse files Browse the repository at this point in the history
…as incorrect if a 'true' answer was selected (when there are more than 1 possible 'true' answers)
  • Loading branch information
FayCross committed Apr 23, 2015
1 parent 87d4e54 commit bdc1359
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
var rightWrongTxt = "";
if (x_currentPageXML.getAttribute("judge") != "false") {
// if all selected are correct - check that none of the unselected options should have been
if (correct != false) {
if (correct != false && currentQuestion.getAttribute("type") == "Multiple Answer") {
var notSelected = $("#optionHolder input:not(:checked)");
for (var i=0; i<notSelected.length; i++) {
var notSelectedOption = quiz.currentAnswers[$(notSelected[i]).index()/2];
Expand Down

0 comments on commit bdc1359

Please sign in to comment.