# HG changeset patch # User Matti Hamalainen # Date 1386251517 -7200 # Node ID f0a09fbca7286aab3964dad742e97c9175dc65ce # Parent 23f22fb6f2d8e7acf2d26f7ea150c14a76f73216 Rename some functions. diff -r 23f22fb6f2d8 -r f0a09fbca728 admin.php --- 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"); }