Forráskód Böngészése

上传修改错误逻辑

namejr 4 éve
szülő
commit
4e0d266507
1 módosított fájl, 9 hozzáadás és 4 törlés
  1. 9 4
      EBook.Web/Common/tasklib_book.js

+ 9 - 4
EBook.Web/Common/tasklib_book.js

@@ -635,7 +635,6 @@ function dealNotShowFill() {
         if ($(this).find(".answer-point-range").length > 0) {
             $.each($(this).find(".answer-point-range"), function () {
                 if ($(this).css("display") == 'inline-block') {
-                    $(iItem).attr("data-lstatus", "1");
                     var iItemClsName = $(iItem).attr("class");
                     if (iItemClsName != null && iItemClsName.indexOf("wordStyle") > -1) {
                         $(iItem).attr("data-setstatus", "0").attr("data-lstatus", "1");
@@ -654,10 +653,16 @@ function dealNotShowFill() {
         if ($(this).find(".answer-text").length > 0) {
             $.each($(this).find(".answer-text"), function () {
                 if ($(this).css("display") == 'inline' && $(this).attr("data-astatus") == '0') {
-                    $(iItem).attr("data-lstatus", "1");
                     var iItemClsName = $(iItem).attr("class");
-                    if (iItemClsName != null && iItemClsName.indexOf("sentenceStyle") > -1) {
-                        $(iItem).prev(".sentImagcs").attr("data-setstatus", "0").attr("data-lstatus", "1");
+                    if (iItemClsName != null && iItemClsName.indexOf("wordStyle") > -1) {
+                        $(iItem).attr("data-setstatus", "0").attr("data-lstatus", "1");
+                    }
+                    else if (iItemClsName != null && iItemClsName.indexOf("phraseStyle") > -1) {
+                        $(iItem).attr("data-setstatus", "0").attr("data-lstatus", "2");
+                    }
+                    else if (iItemClsName != null && iItemClsName.indexOf("sentenceStyle") > -1) {
+                        $(iItem).attr("data-setstatus", "0").attr("data-lstatus", "3");
+                        $(iItem).prev(".sentImagcs").attr("data-setstatus", "0").attr("data-lstatus", "3");
                     }
                 }
             });