|
|
@@ -38,7 +38,11 @@ var dealCheckBox = function () {
|
|
|
});
|
|
|
};
|
|
|
// 多选点击
|
|
|
+var ControlFlag = true; // 多选框是否可选
|
|
|
var clickCheckBox = function (inputId) {
|
|
|
+ if (!ControlFlag) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
var BoxJqStr = ".cBoxCls_" + inputId;
|
|
|
if ($(BoxJqStr).attr("data-status") == "1") {
|
|
|
$(BoxJqStr).attr("data-status", "0");
|
|
|
@@ -1189,12 +1193,19 @@ function getAllAnswer() {
|
|
|
mytext = mytext == "" ? " " : mytext;
|
|
|
$(item).prop("outerHTML", "<div class='answer-body' answer-id='" + answerid + "' parent-anid='" + parentid + "' answer-anstext='" + answerText + "' answer-isky='2'><div class='answer-audio-range'><img src='" + PicInfo.recordPlayImgUrl + "'/><span class='answer-audio-text'>作答音频</span></div><div class='answer-point-range' style='display:none;'><img src='" + PicInfo.answerPointImgUrl + "'/><span class='answer-point-text'>答题点</span></div><buttom class='answer-text' style='display:block;'>" + mytext + "</buttom></div>");
|
|
|
});
|
|
|
+ ControlFlag = false;
|
|
|
//console.log(JSON.stringify(answerData));
|
|
|
return answerData;
|
|
|
}
|
|
|
|
|
|
//回填所有答案,answerJson:所有作答及参考答案List,statusType:0-可作答,1-已提交,2-查看评阅
|
|
|
function backupAllAnswer(answerJson, statusType) {
|
|
|
+ if (ControlFlag == 0) {
|
|
|
+ ControlFlag = true;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ControlFlag = false;
|
|
|
+ }
|
|
|
if (answerJson != "" && answerJson) {
|
|
|
var answerList = JSON.parse(answerJson);
|
|
|
$.each($(".answer-body"), function (num, item) {
|