changeset 255:16d453f1b23d

Simplify refreshing function.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Nov 2013 01:41:43 +0200
parents c26167a096bf
children ed8d8d016420
files admin.php
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/admin.php	Sun Nov 24 01:41:29 2013 +0200
+++ b/admin.php	Sun Nov 24 01:41:43 2013 +0200
@@ -147,15 +147,9 @@
 }
 
 
-function refreshCCAttendee(cid)
+function refreshCCAttendee(id)
 {
-  var msuccess = function(txt)
-  {
-    var nitem = document.getElementById("attendee"+cid);
-    if (nitem) nitem.innerHTML = txt;
-  }
-
-  sendPOSTRequest("action=get&type=attendee&id="+cid, msuccess);
+  refreshItems("attendee"+ id, "attendee", "Attendee", "&id="+ id);
 }