diff options
| author | ivan <ivan> | 2011-04-27 00:48:11 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2011-04-27 00:48:11 +0000 |
| commit | ba82a28b4624e9e768a71a8f4a66825796a3112e (patch) | |
| tree | 1b0a0baaa01aad8bf7a4cf88e9533d9dace4209c /httemplate/elements | |
| parent | 0614763f4b5dbf0e58dbdc2858152bbaa0afea5e (diff) | |
fix submission bug w/chrome, RT#12638
Diffstat (limited to 'httemplate/elements')
| -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> |
