diff admajax.php @ 865:80f6f31d3711

File upload fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 Nov 2014 11:45:30 +0200
parents bb4a6967ccdd
children 74ee30f5b34d
line wrap: on
line diff
--- a/admajax.php	Wed Nov 26 11:34:48 2014 +0200
+++ b/admajax.php	Wed Nov 26 11:45:30 2014 +0200
@@ -224,7 +224,7 @@
   {
     echo
       "  <div class=\"entryRow ".($row % 2 == 1 ? "rodd" : "reven").
-      "\" id=\"entry".$eid."\"".($mode == EEMODE_NORMAL ? " onClick=\"activateEntry(".$eid.")\"" : "").">\n";
+      "\" id=\"entry".$eid."\"".($mode == EEMODE_NORMAL ? " onClick=\"activateEntry(".$eid.", false)\"" : "").">\n";
   }
 
   // Only show show_id if this is a normal compo and we are not adding
@@ -742,7 +742,10 @@
     // File upload
     //
     if (stHandleGenericFileUpload(0))
-      stSetStatus(200, "File successfully uploaded.");
+    {
+      echo "File upload successful!";
+      stSetStatus(902, "File successfully uploaded.");
+    }
     break;
 
   case "randomize":