changeset 256:ed8d8d016420

Add refreshCMEntry(id) function for updating one entry only.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 24 Nov 2013 01:42:25 +0200
parents 16d453f1b23d
children ef9a007c0876
files admin.php
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/admin.php	Sun Nov 24 01:41:43 2013 +0200
+++ b/admin.php	Sun Nov 24 01:42:25 2013 +0200
@@ -177,6 +177,12 @@
 }
 
 
+function refreshCMEntry(id)
+{
+  refreshItems("entry"+ id, "entry", "Entry", "&id="+ id);
+}
+
+
 function refreshDispatchCM(id)
 {
   refreshItems("tabContCM"+ id, "entries", "Compo entries", "&id="+ id);
@@ -331,7 +337,7 @@
 
   var msuccess = function(txt)
   {
-    setTimeout("refreshCCEntries();", 50);
+    setTimeout("refreshDispatchCM("+ id +");", 50);
   }
 
   if (args != "")
@@ -347,7 +353,7 @@
   var msuccess = function(txt)
   {
     // Full update needed, because of possibly changed compo_id
-    setTimeout("refreshCCEntries();", 50);
+    setTimeout("refreshCMEntry("+ id +");", 50);
   }
 
   if (args != "")