Author: nbelaevski
Date: 2009-04-21 11:54:23 -0400 (Tue, 21 Apr 2009)
New Revision: 13741
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-6618
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 2009-04-21
15:39:27 UTC (rev 13740)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-04-21
15:54:23 UTC (rev 13741)
@@ -674,6 +674,7 @@
add: function(elt) {
if (this.disabled) return;
+ if (!elt.value) return;
if (!this.checkFileType(elt.value) || !this.checkDuplicated(elt)) {
var fileName = elt.value;