Author: pyaschenko
Date: 2008-12-10 12:23:41 -0500 (Wed, 10 Dec 2008)
New Revision: 11707
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-4848
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-12-10
17:18:57 UTC (rev 11706)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-12-10
17:23:41 UTC (rev 11707)
@@ -517,7 +517,7 @@
if (this.iframe) return;
var div = document.createElement("div");
div.style.display = 'none';
- var child = "<iframe name='"+this.id+"_iframe'
id='"+this.id+"_iframe'></iframe>";
+ var child = "<iframe name='"+this.id+"_iframe'
id='"+this.id+"_iframe'"+ (!Richfaces.browser.isOpera ? "
src=\"javascript:''\"" :
"")+"></iframe>";
div.innerHTML = child;
document.body.appendChild(div);
this.iframe = $(this.id + "_iframe");