visuddhinanda 5 лет назад
Родитель
Сommit
d4f772009f
2 измененных файлов с 8 добавлено и 4 удалено
  1. 1 1
      app/studio/js/message.js
  2. 7 3
      app/studio/js/render.js

+ 1 - 1
app/studio/js/message.js

@@ -349,7 +349,7 @@ function msg_apply_data(obj) {
         let begin = obj.data.begin;
         let end = obj.data.end;
         $(
-          "[pcds='sent-net'][book='" +
+          "[pcds='sent-net-all'][book='" +
             book +
             "'][para='" +
             para +

+ 7 - 3
app/studio/js/render.js

@@ -1889,10 +1889,14 @@ function render_tran_sent_block(
   output += "</div>";
   let id =
     "tran_pre_" + book + "_" + para + "_" + begin + "_" + end + "_" + channal;
+  output += "<div class='trans_text_content' tid = '" + id;
+  if (channal == 0) {
+    output += "'  pcds='sent-net-all' ";
+  } else {
+    output += "'  pcds='sent-net' ";
+  }
+
   output +=
-    "<div class='trans_text_content' tid = '" +
-    id +
-    "'  pcds='sent-net' " +
     " book='" +
     book +
     "' para='" +