|
|
@@ -1603,12 +1603,13 @@ function backupAllAnswer(answerJson, statusType) {
|
|
|
if (statusType == 2) {
|
|
|
$.each($(".answer-body"), function (num, item) {
|
|
|
var parentid = $(item).attr("parent-anid");
|
|
|
- if (answerList[num].Score == 0) {
|
|
|
+ var answerid = $(".answer-body[parent-anid=" + parentid + "]").attr("answer-id");
|
|
|
+ if (answerList[answerid].Score == 0) {
|
|
|
if (!$(item).children(".answer-text").hasClass("good-answer")) {
|
|
|
$(item).children(".answer-text").addClass("bad-answer");
|
|
|
}
|
|
|
}
|
|
|
- if (answerList[num].Score > 0) {
|
|
|
+ if (answerList[answerid].Score > 0) {
|
|
|
//遍历同一小题的评阅,并加上样式
|
|
|
$.each($(".answer-body[parent-anid=" + parentid + "]"), function (n, item) {
|
|
|
$(item).children(".answer-text").addClass("good-answer");
|
|
|
@@ -2029,6 +2030,12 @@ function getSelectedText(title) {
|
|
|
function showImageFunc(Id, leftVal, allTimes) {
|
|
|
playImageFunc(Id, leftVal, allTimes);
|
|
|
}
|
|
|
+// 暂停所有的样式
|
|
|
+function StopAllCss() {
|
|
|
+ $.each($(".LDFPlayS"), function (index, item) {
|
|
|
+ $(this).attr("data-playstatus", "0");
|
|
|
+ });
|
|
|
+};
|
|
|
// 控制字体大小
|
|
|
function adjustFontSize(FontSize) {
|
|
|
var TFontSize = 16 * 100 / FontSize;
|