Procházet zdrojové kódy

Merge pull request #139 from visuddhinanda/master

:bug: channal 列表不能正常显示
visuddhinanda před 5 roky
rodič
revize
ee7f8b8b44
1 změnil soubory, kde provedl 8 přidání a 0 odebrání
  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");
   console.log("note_channal_list start");
   let objNotes = document.querySelectorAll("note");
   let objNotes = document.querySelectorAll("note");
   let arrSentInfo = new Array();
   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) {
   for (const iterator of objNotes) {
     {
     {
       let info = iterator.getAttributeNode("info").value;
       let info = iterator.getAttributeNode("info").value;
@@ -207,6 +214,7 @@ function note_channal_list() {
       }
       }
     }
     }
   }
   }
+*/
   if (arrSentInfo.length > 0) {
   if (arrSentInfo.length > 0) {
     $.post(
     $.post(
       "../term/channal_list.php",
       "../term/channal_list.php",