changeset 400:f0a09fbca728

Rename some functions.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2013 15:51:57 +0200
parents 23f22fb6f2d8
children b42438e09087
files admin.php
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/admin.php	Thu Dec 05 15:51:29 2013 +0200
+++ b/admin.php	Thu Dec 05 15:51:57 2013 +0200
@@ -109,7 +109,7 @@
 var activeTabs = Object();
 
 
-function refreshItems(id,name,extra)
+function jsRefreshItems(id,name,extra)
 {
   var msuccess = function(txt)
   {
@@ -121,7 +121,7 @@
 }
 
 
-function deleteItem(id,prefix,type,func,dsc)
+function jsDeleteItem(id,prefix,type,func,dsc)
 {
   var msuccess = function(txt)
   {
@@ -155,12 +155,12 @@
 {
   switch (id)
   {
-    case "Settings": refreshItems("tabContCCSettings", "settings", ""); break;
-    case "News": refreshItems("tabContCCNews", "news", ""); break;
-    case "Attendees": refreshItems("tabContCCAttendees", "attendees", ""); break;
-    case "Voting": refreshItems("tabContCCVoting", "voters", ""); break;
-    case "Compos": refreshItems("tabContCCCompos", "compos", ""); break;
-    case "InfoSys": refreshItems("tabContCCInfoSys", "info", ""); break;
+    case "Settings": jsRefreshItems("tabContCCSettings", "settings", ""); break;
+    case "News": jsRefreshItems("tabContCCNews", "news", ""); break;
+    case "Attendees": jsRefreshItems("tabContCCAttendees", "attendees", ""); break;
+    case "Voting": jsRefreshItems("tabContCCVoting", "voters", ""); break;
+    case "Compos": jsRefreshItems("tabContCCCompos", "compos", ""); break;
+    case "InfoSys": jsRefreshItems("tabContCCInfoSys", "info", ""); break;
     case "Entries": refreshCCEntries(); break;
   }
 }
@@ -168,7 +168,7 @@
 
 function refreshCCAttendee(id)
 {
-  refreshItems("attendee"+ id, "attendee", "&id="+ id);
+  jsRefreshItems("attendee"+ id, "attendee", "&id="+ id);
 }
 
 
@@ -205,13 +205,13 @@
 
 function refreshCMEntry(id)
 {
-  refreshItems("entry"+ id, "entry", "&id="+ id);
+  jsRefreshItems("entry"+ id, "entry", "&id="+ id);
 }
 
 
 function refreshDispatchCM(id)
 {
-  refreshItems("tabContCM"+ id, "entries", "&id="+ id);
+  jsRefreshItems("tabContCM"+ id, "entries", "&id="+ id);
 }
 
 
@@ -233,7 +233,7 @@
 
 function deleteNews(id)
 {
-  deleteItem(id, "news", "news", "refreshDispatchCC('News');", "news item");
+  jsDeleteItem(id, "news", "news", "refreshDispatchCC('News');", "news item");
 }
 
 
@@ -244,7 +244,7 @@
 
   var msuccess = function(txt)
   {
-    refreshItems("news"+id, "newsitem", "&id="+id);
+    jsRefreshItems("news"+id, "newsitem", "&id="+id);
   }
 
   if (args != "")
@@ -270,7 +270,7 @@
 
 function deleteAttendee(id)
 {
-  deleteItem(id, "attendee", "attendees", "refreshDispatchCC('Attendees');", "attendee");
+  jsDeleteItem(id, "attendee", "attendees", "refreshDispatchCC('Attendees');", "attendee");
 }
 
 
@@ -280,7 +280,7 @@
 
   var msuccess = function(txt)
   {
-    refreshItems("attendee"+id, "attendee", "&id="+id+"&edit=1");
+    jsRefreshItems("attendee"+id, "attendee", "&id="+id+"&edit=1");
   }
 
   if (args != "")
@@ -346,7 +346,7 @@
 
   var msuccess = function(txt)
   {
-    refreshItems("compo"+id, "compo", "&id="+id);
+    jsRefreshItems("compo"+id, "compo", "&id="+id);
   }
 
   if (args != "")
@@ -394,7 +394,7 @@
 
 function deleteEntry(cid, id)
 {
-  deleteItem(id, "entry", "entries", "refreshDispatchCM("+ cid +");", "entry");
+  jsDeleteItem(id, "entry", "entries", "refreshDispatchCM("+ cid +");", "entry");
 }