|
|
@@ -1249,7 +1249,7 @@ function resetPressFlag() {
|
|
|
}
|
|
|
|
|
|
// 打补丁(非underlineContent下的span下嵌套underlineContent)
|
|
|
-function dealSULContentFunc(item, info) {
|
|
|
+function dealSULContentFunc(item, Id, pId) {
|
|
|
var reInfosArr = [];
|
|
|
// 处理"非underlineContent下的span下嵌套underlineContent"
|
|
|
var uLCClsName = $(item).attr("class");
|
|
|
@@ -1259,12 +1259,16 @@ function dealSULContentFunc(item, info) {
|
|
|
if (item.find(".underlineContent").length > 0) {
|
|
|
removeFlag = true;
|
|
|
$.each(item.find(".underlineContent"), function (iIndex, iItem) {
|
|
|
- var nInfoObj = info;
|
|
|
- nInfoObj.AnsText = $(iItem).attr("answer-anstext");
|
|
|
- if (nInfoObj.AnsText == undefined) {
|
|
|
- nInfoObj.AnsText = $(iItem).text();
|
|
|
+ var info = new Object();
|
|
|
+ info.Id = Id;
|
|
|
+ info.pId = pId;
|
|
|
+ info.AnsText = "";
|
|
|
+ info.AnsText = $(iItem).attr("answer-anstext");
|
|
|
+ if (info.AnsText == undefined) {
|
|
|
+ info.AnsText = $(iItem).text();
|
|
|
}
|
|
|
- reInfosArr.push(nInfoObj);
|
|
|
+ reInfosArr.push(info);
|
|
|
+ info = null;
|
|
|
$(iItem).remove();
|
|
|
});
|
|
|
}
|
|
|
@@ -1307,7 +1311,7 @@ function dealSULContentFunc(item, info) {
|
|
|
else if (uLCClsName.indexOf("underline") > -1) {
|
|
|
item.remove();
|
|
|
}
|
|
|
- var reInfosGet = dealSULContentFunc(nItem, info);
|
|
|
+ var reInfosGet = dealSULContentFunc(nItem, Id, pId);
|
|
|
for (var i = 0; i < reInfosGet.length; i++) {
|
|
|
reInfosArr.push(reInfosGet[i]);
|
|
|
}
|
|
|
@@ -1407,7 +1411,7 @@ function handleAnswerRange() {
|
|
|
}
|
|
|
tempJson.push(info);
|
|
|
// 特殊处理
|
|
|
- var tInfos = dealSULContentFunc($(item).next(), info);
|
|
|
+ var tInfos = dealSULContentFunc($(item).next(), info.Id, info.pId);
|
|
|
for (var i = 0; i < tInfos.length; i++) {
|
|
|
tempJson.push(tInfos[i]);
|
|
|
}
|