[freeside-commits] freeside/httemplate/elements form-file_upload.html, 1.3, 1.3.8.1

Ivan,,, ivan at wavetail.420.am
Tue Apr 26 17:48:13 PDT 2011


Update of /home/cvs/cvsroot/freeside/httemplate/elements
In directory wavetail.420.am:/tmp/cvs-serv31535/elements

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	form-file_upload.html 
Log Message:
fix submission bug w/chrome, RT#12638

Index: form-file_upload.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/elements/form-file_upload.html,v
retrieving revision 1.3
retrieving revision 1.3.8.1
diff -u -w -d -r1.3 -r1.3.8.1
--- form-file_upload.html	12 Feb 2009 15:55:40 -0000	1.3
+++ form-file_upload.html	27 Apr 2011 00:48:11 -0000	1.3.8.1
@@ -72,7 +72,7 @@
       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 @@
                      }
                    : $opt{url};
 
+$opt{onsubmit} .= ';' if $opt{onsubmit} && $opt{onsubmit} !~ /;\s*$/;
+
 </%init>



More information about the freeside-commits mailing list