changeset 1082:571ad3639468

Fix file uploads.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 25 Jan 2017 12:29:27 +0200
parents 5f48cb05bfff
children 1f77195b4f95
files admajax.php
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admajax.php	Wed Jan 25 01:03:01 2017 +0200
+++ b/admajax.php	Wed Jan 25 12:29:27 2017 +0200
@@ -219,7 +219,7 @@
     "      <input type=\"file\" name=\"".$type."ToUpload".$eid."\" id=\"".$type."ToUpload".$eid."\">\n".
     "      ".stGetFormButtonInput($type."UploadButton", $eid, "", "Upload",
     "jsStartFileUpload('".$type."UploadForm".$eid."','".$handler."','".$type."ToUpload".$eid.
-    "',".stGetSetting($type."MaxSize").", 'updateEntry(".$entry["compo_id"].",".$eid.", 1)')")."\n".
+    "',".stGetSetting($type."MaxSize").", function() { updateEntry(".$entry["compo_id"].",".$eid.", 1) })")."\n".
     "     </form>\n";
   }