Browse Source

:bug: channal 列表不能正常显示

visuddhinanda 5 years ago
parent
commit
7ed597bf0d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/term/note.js

+ 8 - 0
app/term/note.js

@@ -199,6 +199,13 @@ function note_channal_list() {
   console.log("note_channal_list start");
   let objNotes = document.querySelectorAll("note");
   let arrSentInfo = new Array();
+  $("note").each(function () {
+    let info = $(this).attr("info");
+    if (info && info != "") {
+      arrSentInfo.push({ id: "", data: info });
+    }
+  });
+  /*
   for (const iterator of objNotes) {
     {
       let info = iterator.getAttributeNode("info").value;
@@ -207,6 +214,7 @@ function note_channal_list() {
       }
     }
   }
+*/
   if (arrSentInfo.length > 0) {
     $.post(
       "../term/channal_list.php",