From 69a17ed7c31d23670f715ad639ab16b12392dcc1 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 27 Apr 2011 00:48:10 +0000 Subject: fix submission bug w/chrome, RT#12638 --- httemplate/elements/form-file_upload.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'httemplate/elements') 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*$/; + -- cgit v1.2.1