X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fform-file_upload.html;h=45b6c97f267008a8c100c4d4f58a1a0d0b289c0b;hp=4ab70ad9c6716dedeb7d08ff41e59818b38c3ea4;hb=c3da5cf1caa244937d280e0f406927103beef148;hpb=63a268637b2d51a8766412617724b9436439deb6 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*$/; +