Commit 83ef87a2 by doszhang

dos

parent 04efc99a
...@@ -526,13 +526,9 @@ function chooseAnswer(e) { ...@@ -526,13 +526,9 @@ function chooseAnswer(e) {
e.stopPropagation(); e.stopPropagation();
let node = $(e.target); let node = $(e.target);
$('.question' + nowQuestionIndex + '-block .answer-active').hide(); $('.question' + nowQuestionIndex + '-block .answer-active').hide();
if (node.attr('class').indexOf('active') != -1) { nowAnswer = $('.question' + nowQuestionIndex + '-block .answer').index(node);
nowAnswer = ''; answerArr[nowQuestionIndex - 1] = nowAnswer;
} else { node.find('div[class$=-active]').show();
nowAnswer = $('.question' + nowQuestionIndex + '-block .answer').index(node);
answerArr[nowQuestionIndex - 1] = nowAnswer;
node.find('div[class$=-active]').show();
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment