Author: pyaschenko
Date: 2009-05-04 09:39:21 -0400 (Mon, 04 May 2009)
New Revision: 14004
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
https://jira.jboss.org/jira/browse/RF-6846
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-05-04
13:24:45 UTC (rev 14003)
+++
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js 2009-05-04
13:39:21 UTC (rev 14004)
@@ -777,7 +777,7 @@
clear: function(entry, isCancelButton) {
if (this.disabled) return;
if (entry) {
- if (isCancelButton || entry.state == FileUploadEntry.UPLOAD_SUCCESS || entry.state ==
FileUploadEntry.INITIALIZED || entry.state == FileUploadEntry.UPLOAD_CANCELED) {
+ if (isCancelButton || entry.state == FileUploadEntry.UPLOAD_SUCCESS || entry.state ==
FileUploadEntry.INITIALIZED) {
this.remove(entry);
if(this.events.onclear) {
this.element.fire("rich:onclear", {entry : entry});