Author: andrei_exadel
Date: 2008-07-10 08:53:45 -0400 (Thu, 10 Jul 2008)
New Revision: 9508
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-3735
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-07-10
12:47:28 UTC (rev 9507)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-07-10
12:53:45 UTC (rev 9508)
@@ -347,7 +347,7 @@
var elt = iframeDocument.getElementById('_richfaces_file_upload_stopped');
var restr =
iframeDocument.getElementById('_richfaces_file_upload_size_restricted');
var forb = iframeDocument.getElementById('_richfaces_file_upload_forbidden');
- var state = iframeDocument.getElementById("javax.faces.ViewState");
+ var state = this.findViewState(iframeDocument);
if (elt) {
this.callback(FileUploadEntry.UPLOAD_CANCELED);
@@ -363,6 +363,17 @@
}
},
+ findViewState: function(d) {
+ var s = 'javax.faces.ViewState';
+ var input = d.getElementsByTagName("input");
+ for (var i in input) {
+ if (input[i].name == s) {
+ return input[i];
+ }
+ }
+ return d.getElementById(s);
+ },
+
stop: function() {
this.stopped = true;
Show replies by date