mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
porting create form wizard to IE. IE wants form.encoding rather than form.enctype.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4060 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
{
|
||||
el.form.method = "post";
|
||||
el.form.enctype = "multipart/form-data";
|
||||
// for IE
|
||||
el.form.encoding = "multipart/form-data";
|
||||
el.form.action = "<%= request.getContextPath() %>/uploadFileServlet";
|
||||
el.form.submit();
|
||||
return false;
|
||||
|
@@ -37,24 +37,15 @@
|
||||
|
||||
function validate()
|
||||
{
|
||||
// if (finishButtonPressed)
|
||||
// {
|
||||
// finishButtonPressed = false;
|
||||
// return validateName(document.getElementById("wizard:wizard-body:file-name"),
|
||||
// '</f:verbatim><a:outputText value="#{msg.validation_invalid_character}" /><f:verbatim>',
|
||||
// true);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
return true;
|
||||
}
|
||||
|
||||
function upload_file(el)
|
||||
{
|
||||
el.form.method = "post";
|
||||
el.form.enctype = "multipart/form-data";
|
||||
el.form.encType = "multipart/form-data";
|
||||
// for IE
|
||||
el.form.encoding = "multipart/form-data";
|
||||
el.form.action = "<%= request.getContextPath() %>/uploadFileServlet";
|
||||
el.form.submit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user