Author: andrei_exadel
Date: 2008-09-05 11:18:27 -0400 (Fri, 05 Sep 2008)
New Revision: 10324
Modified:
branches/3.2.x/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Reset frame fix
Modified:
branches/3.2.x/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
===================================================================
---
branches/3.2.x/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-09-05
15:17:38 UTC (rev 10323)
+++
branches/3.2.x/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-09-05
15:18:27 UTC (rev 10324)
@@ -541,7 +541,11 @@
},
resetFrame: function () {
- if (this.iframe && this.iframe.contentWindow.document &&
this.iframe.contentWindow.document.body) this.iframe.contentWindow.document.body.innerHTML
= "";
+ if (window.opera && this.iframe && this.iframe.contentWindow.document
&& this.iframe.contentWindow.document.body) {
+ this.iframe.contentWindow.document.body.innerHTML = "";
+ } else {
+ this.iframe.src = "javascript:''";
+ }
},
initEvents : function() {