projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use generic Configuration ACL for browsing the outgoing email log
[freeside.git]
/
httemplate
/
elements
/
form-file_upload.html
diff --git
a/httemplate/elements/form-file_upload.html
b/httemplate/elements/form-file_upload.html
index
f398ba4
..
45b6c97
100644
(file)
--- a/
httemplate/elements/form-file_upload.html
+++ b/
httemplate/elements/form-file_upload.html
@@
-10,7
+10,7
@@
Example:
'num_files' => 1, #or more
'url' => $url
'num_files' => 1, #or more
'url' => $url
- #OR
+ #
AND/
OR
'message' => 'Message',
#optional
'message' => 'Message',
#optional
@@
-53,7
+53,7
@@
Example:
var uploaded = document.getElementById('uploaded_files');
var a = uploaded.value.split(',');
var uploaded = document.getElementById('uploaded_files');
var a = uploaded.value.split(',');
- if (uploaded.value.split(',').length == <% $opt{num_files} %>){
+ if (
success &&
uploaded.value.split(',').length == <% $opt{num_files} %>){
process();
}else{
var p = document.getElementById('uploadError');
process();
}else{
var p = document.getElementById('uploadError');
@@
-72,7
+72,7
@@
Example:
ACTION = "<% $fsurl %>misc/file-upload.html"
METHOD = "POST"
ENCTYPE = "multipart/form-data"
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>
>
<%init>
@@
-90,4
+90,6
@@
my $msg_or_url = $opt{message}
}
: $opt{url};
}
: $opt{url};
+$opt{onsubmit} .= ';' if $opt{onsubmit} && $opt{onsubmit} !~ /;\s*$/;
+
</%init>
</%init>