diff admin.js @ 644:de35a9743557

Implement changing of compo type.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 03 Nov 2014 02:14:54 +0200
parents c78e11aa3162
children 1005de5ee3f0
line wrap: on
line diff
--- a/admin.js	Mon Nov 03 02:11:10 2014 +0200
+++ b/admin.js	Mon Nov 03 02:14:54 2014 +0200
@@ -294,6 +294,17 @@
 }
 
 
+function updateCompoType(id)
+{
+  var msuccess = function(txt)
+  {
+    jsRefreshItems("compo"+id, "compo", "&id="+id);
+  }
+
+  jsSendPOSTRequest("action=update&type=compotype&id="+id+"&ctype="+jsGetValue("cotype"+id+"Sel", 4), msuccess);
+}
+
+
 function updateCompo(id)
 {
   var args = jsMakePostArgs({"name":1, "description":1, "visible":3, "voting":3, "show_authors":3, "cpath":1}, "co", id);