summaryrefslogtreecommitdiff
path: root/httemplate/elements/form-file_upload.html
diff options
context:
space:
mode:
authorivan <ivan>2011-04-27 00:48:10 +0000
committerivan <ivan>2011-04-27 00:48:10 +0000
commit69a17ed7c31d23670f715ad639ab16b12392dcc1 (patch)
tree93bc0aa9618cd7e5e8757a207376b3c5d0f5887d /httemplate/elements/form-file_upload.html
parente7c2224fdf499bd9cdf3759920378ec360eb965e (diff)
fix submission bug w/chrome, RT#12638
Diffstat (limited to 'httemplate/elements/form-file_upload.html')
-rw-r--r--httemplate/elements/form-file_upload.html4
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>