|
|
@@ -227,7 +227,8 @@ function bindEventYS() {
|
|
|
var headid = -1;
|
|
|
var groupId = -1;
|
|
|
$(".multipleStart").each(function (i, item) {
|
|
|
- $.each($(item).nextUntil(".multipleEnd").filter("[class*='group']"), function (index, item) {
|
|
|
+ var $startNode = $(item);
|
|
|
+ $.merge($(item).nextUntil(".multipleEnd").filter("[class*='group']"), $(item).nextUntil(".multipleEnd").find("[class*='group']")).each(function (index, item) {
|
|
|
checkId = $(item).find('.yaoshi').attr("answer-id");
|
|
|
var gid = $(item).attr('class').replace(/.*group(\d+).*/g, "$1");
|
|
|
if (index == 0 || groupId != gid) {
|
|
|
@@ -237,7 +238,7 @@ function bindEventYS() {
|
|
|
$(item).find('.yaoshi').attr('parent-anid', headid);
|
|
|
});
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
//显示/隐藏习题答案
|
|
|
$(".yaoshi").on("click", function () {
|
|
|
var parentAnid = $(this).attr("parent-anid");
|
|
|
@@ -428,7 +429,7 @@ function handleAnswerRange() {
|
|
|
var tempJson = new Array();
|
|
|
//先处理一题多空的情况,获取两个之间的答题点
|
|
|
$(".multipleStart").each(function (i, item) {
|
|
|
- $.each($(item).nextUntil(".multipleEnd").filter("[class*='group']"), function (index, item) {
|
|
|
+ $.merge($(item).nextUntil(".multipleEnd").filter("[class*='group']"), $(item).nextUntil(".multipleEnd").find("[class*='group']")).each(function (index, item) {
|
|
|
var checkId = $(item).find('.yaoshi').attr("answer-id");
|
|
|
var headid = $(item).find('.yaoshi').attr("parent-anid");
|
|
|
var ischecked = $(item).find(".underlineContent").text().indexOf("√") > -1;
|