Author: andrei_exadel
Date: 2008-08-19 11:40:42 -0400 (Tue, 19 Aug 2008)
New Revision: 10141
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-4193
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-19
14:21:46 UTC (rev 10140)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-19
15:40:42 UTC (rev 10141)
@@ -996,6 +996,14 @@
return parentForm;
},
+ _getAction: function(f) {
+ return f.getAttributeNode('action').nodeValue;
+ },
+
+ _setAction: function(f, newValue) {
+ f.getAttributeNode('action').nodeValue = newValue;
+ },
+
submitForm: function(entry) {
var parentForm = this.getForm();
@@ -1007,7 +1015,7 @@
var oldTarget = parentForm.target;
var oldEnctype = parentForm.enctype;
var oldEncoding = parentForm.encoding;
- var oldAction = parentForm.action;
+ var oldAction = this._getAction(parentForm);
try {
if (!formUpload) {
@@ -1015,7 +1023,7 @@
parentForm.encoding = "multipart/form-data";
parentForm.enctype = "multipart/form-data";
- parentForm.action = this.actionUrl + (/\?/.test(this.actionUrl) ?
'&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' +
encodeURI(entry.uid) + "&id=" + this.id +
"&_richfaces_upload_file_indicator=true"+"&AJAXREQUEST="+this.progressBar.containerId;
+ this._setAction(parentForm, this.actionUrl + (/\?/.test(this.actionUrl) ?
'&_richfaces_upload_uid' : '?_richfaces_upload_uid') + '=' +
encodeURI(entry.uid) + "&id=" + this.id +
"&_richfaces_upload_file_indicator=true"+"&AJAXREQUEST="+this.progressBar.containerId);
parentForm.target = this.id + "_iframe";
var inputs = parentForm.elements;
Show replies by date