# HG changeset patch # User Matti Hamalainen # Date 1417071322 -7200 # Node ID c4bff14a8a50f14d1e5dd16cedc40cd8c8cd08c6 # Parent bc2267ee7788eed58a965e5cf9749f57158e9394 Fix previous commit to be nicer. diff -r bc2267ee7788 -r c4bff14a8a50 admajax.php --- a/admajax.php Thu Nov 27 08:53:54 2014 +0200 +++ b/admajax.php Thu Nov 27 08:55:22 2014 +0200 @@ -177,7 +177,7 @@ function stGetFileUploadAndSelector($mode, $entry, $type, $file_id, $title) { if ($mode == 2) - return "
File(s) will be uploaded after adding entry.
"; + return ""; $eid = $entry["id"]; $str = "
".chentities($title)."\n"; @@ -250,6 +250,7 @@ " ".stGetEditFormTextInput($mode, "Author", 20, SET_LEN_ENTRY_AUTHOR, "author", $eid, $prefix, $item["author"])."\n". "
\n". "
\n". + ($mode == 2 ? "Files can be uploaded after adding the entry" : ""). stGetFileUploadAndSelector($mode, $item, "entry", "file_id", "Entry file"). stGetFileUploadAndSelector($mode, $item, "preview", "preview_id", "Preview file"). "
\n".