diff admajax.js.php @ 1070:e23057465ca2

Some more AJAX fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 24 Jan 2017 17:37:50 +0200
parents 5f92fa5e683a
children 76e11ae923a7
line wrap: on
line diff
--- a/admajax.js.php	Tue Jan 24 17:25:48 2017 +0200
+++ b/admajax.js.php	Tue Jan 24 17:37:50 2017 +0200
@@ -1011,3 +1011,20 @@
 {
   jsSendPOSTRequest("action=ctrl&type=skipToNextSlide");
 }
+
+
+document.addEventListener("DOMContentLoaded",
+function ()
+{
+  jsRegisterTab("CC", "Settings", "Settings");
+  jsRegisterTab("CC", "News", "News");
+  jsRegisterTab("CC", "Attendees", "Attendees");
+  jsRegisterTab("CC", "Voting", "Voting");
+  jsRegisterTab("CC", "Compos", "Compos");
+  jsRegisterTab("CC", "Entries", "Entries");
+  jsRegisterTab("CC", "InfoSys", "Infosystem");
+  jsUpdateTabList("CC",
+    "<a class=\"admin\" href=\"admlogout.php\">Logout</a> " +
+    "<a class=\"admin\" href=\"about\">Mainpage</a>");
+  jsSwitchActiveTab("CC", "Settings");
+});