Fine tuning the design pattern
authorArt Cancro <ajc@citadel.org>
Fri, 13 Aug 2021 00:46:38 +0000 (20:46 -0400)
committerArt Cancro <ajc@citadel.org>
Fri, 13 Aug 2021 00:46:38 +0000 (20:46 -0400)
webcit/static/t/aide/siteconfig/tab_aliases.html

index 1e78cb8..5058d05 100644 (file)
@@ -14,10 +14,12 @@ load_aliases = async() => {
 };
 
 function populate_aliases(data) {
 };
 
 function populate_aliases(data) {
-       document.getElementById("wc_easterbunny77").innerHTML = data;
+       lines = data.split("\n");
+       for (var i=1; i<lines.length && lines[i] != "000"; ++i) {
+               document.getElementById("wc_easterbunny77").innerHTML += i + " " + lines[i] + "<br>";
+       }
 }
 
 }
 
-document.getElementById("wc_easterbunny77").innerHTML = "die easterbunny die easterbunny still fool";
 load_aliases();
 
 </script>
 load_aliases();
 
 </script>