Author: pyaschenko
Date: 2008-08-13 11:19:26 -0400 (Wed, 13 Aug 2008)
New Revision: 10074
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-4145
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-08-13
14:42:34 UTC (rev 10073)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2008-08-13
15:19:26 UTC (rev 10074)
@@ -1074,6 +1074,7 @@
this.isFlash = swfobject.hasFlashPlayerVersion("9.0.28");
if (this.isFlash)
{
+ this.disable();
var flashvars = {fileUploadId:this.id};
var params = {allowscriptaccess:true};
var attributes = {};
@@ -1107,6 +1108,7 @@
acceptedTypes: this.acceptedTypes,
noDuplicate: this.options.noDuplicate,
maxFiles: this.maxFileBatchSize });
+ this.enable();
},
_flashAdd: function(files) {