1e78cb8ed67554f03b19765278a0b67ad0c5754c
[citadel] / webcit / static / t / aide / siteconfig / tab_aliases.html
1 <div class="conftitle"><?_("Global email aliases")></div>
2 <a href="javascript:load_aliases()">&#8635;</a>
3 <hr>
4
5 <div id="wc_easterbunny77">
6 </div>
7
8 <script type="text/javascript">
9
10 load_aliases = async() => {
11         response = await fetch("ajax_servcmd?g_cmd=LIST");
12         data = await(response.text());
13         populate_aliases(data);
14 };
15
16 function populate_aliases(data) {
17         document.getElementById("wc_easterbunny77").innerHTML = data;
18 }
19
20 document.getElementById("wc_easterbunny77").innerHTML = "die easterbunny die easterbunny still fool";
21 load_aliases();
22
23 </script>
24
25 <!-- This could end up being a design pattern in WebCit-NG -->