diff options
Diffstat (limited to 'httemplate/elements/form-file_upload.html')
-rw-r--r-- | httemplate/elements/form-file_upload.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/form-file_upload.html b/httemplate/elements/form-file_upload.html index 4ab70ad9c..45b6c97f2 100644 --- a/httemplate/elements/form-file_upload.html +++ b/httemplate/elements/form-file_upload.html @@ -72,7 +72,7 @@ Example: ACTION = "<% $fsurl %>misc/file-upload.html" METHOD = "POST" ENCTYPE = "multipart/form-data" - onSubmit = "return doUpload(this, <% $opt{key} %>gotUploaded)" + onSubmit = "<% $opt{onsubmit} %>return doUpload(this, <% $opt{key} %>gotUploaded)" > <%init> @@ -90,4 +90,6 @@ my $msg_or_url = $opt{message} } : $opt{url}; +$opt{onsubmit} .= ';' if $opt{onsubmit} && $opt{onsubmit} !~ /;\s*$/; + </%init> |