Author: pyaschenko
Date: 2008-06-24 11:51:44 -0400 (Tue, 24 Jun 2008)
New Revision: 9201
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/fileUploadComponent.swf
Log:
http://jira.jboss.com/jira/browse/RF-3549
fixed flash mode under IE
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-06-24
15:09:43 UTC (rev 9200)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-06-24
15:51:44 UTC (rev 9201)
@@ -1052,7 +1052,7 @@
var oid = this.id+":flashContainer";
object.style.display = allowFlash=="true" ? "" :
"none";
object.id = oid;
- this.element.appendChild(object);
+ this.items.appendChild(object);
this.isFlash = swfobject.hasFlashPlayerVersion("8.0.0");
if (this.isFlash)
{
@@ -1068,6 +1068,9 @@
//this.currentInput.onchange = null;
this.currentInput.onmousedown=(function (){this.createFrame();}).bind(this);
this.currentInput.onclick = this._flashOnOpenFileDialog.bind(this);
+ } else if (allowFlash=="true")
+ {
+ this.disable();
}
}
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/fileUploadComponent.swf
===================================================================
(Binary files differ)