diff admin.js @ 1038:2e1a9b564674

Add votekey information blurb.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 20 Nov 2015 08:38:38 +0200
parents df54d73bc5a0
children f188caaedf0f
line wrap: on
line diff
--- a/admin.js	Fri Nov 20 07:54:48 2015 +0200
+++ b/admin.js	Fri Nov 20 08:38:38 2015 +0200
@@ -536,6 +536,12 @@
 //
 // Votekey management
 //
+function voteKeyInfoRefresh()
+{
+  jsRefreshItems("vkeyInfo", "votekey", "info");
+}
+
+
 function voteKeyRefresh(id)
 {
   var msuccess2 = function(txt)
@@ -543,6 +549,7 @@
     var nitem = document.getElementById("vkey"+id);
     if (nitem)
       nitem.className = txt;
+    voteKeyInfoRefresh();
   }
 
   var msuccess1 = function(txt)
@@ -550,6 +557,7 @@
     var nitem = document.getElementById("vkey"+id);
     if (nitem)
       nitem.innerHTML = txt;
+    voteKeyInfoRefresh();
   }
 
   jsSendPOSTRequest("action=get&type=votekey&id="+id, msuccess1);
@@ -562,6 +570,7 @@
   var msuccess = function(txt)
   {
     voteKeyRefresh(id);
+    voteKeyInfoRefresh();
   }
 
   jsSendPOSTRequest("action=votekey&type="+type+"&id="+id+"&"+args, msuccess);