Skip to content
Snippets Groups Projects
Commit 192fef6a authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

When editing a file description that doesn't exist, pass a blank string

uifc.input() defaults to a max width of 40 chars if no string is passed.

file.desc may be undefined when no description is provided by uploader.
parent 1d1315af
No related branches found
No related tags found
No related merge requests found
...@@ -740,7 +740,7 @@ function edit_filename(file) ...@@ -740,7 +740,7 @@ function edit_filename(file)
function edit_desc(file) function edit_desc(file)
{ {
var desc = uifc.input(WIN_MID|WIN_SAV, "Description", file.desc, LEN_FDESC, K_EDIT); var desc = uifc.input(WIN_MID|WIN_SAV, "Description", file.desc || "", LEN_FDESC, K_EDIT);
if(desc !== undefined) if(desc !== undefined)
file.desc = desc; file.desc = desc;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment