Sfoglia il codice sorgente

Merge pull request #139 from visuddhinanda/master

:bug: channal 列表不能正常显示
visuddhinanda 5 anni fa
parent
commit
ee7f8b8b44
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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",