Author: andrei_exadel
Date: 2008-09-05 11:17:38 -0400 (Fri, 05 Sep 2008)
New Revision: 10323
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
Reset frame fix
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-09-05
13:13:42 UTC (rev 10322)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-09-05
15:17:38 UTC (rev 10323)
@@ -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() {
Show replies by date