[richfaces-svn-commits] JBoss Rich Faces SVN: r9198 - trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jun 24 10:51:06 EDT 2008


Author: andrei_exadel
Date: 2008-06-24 10:51:05 -0400 (Tue, 24 Jun 2008)
New Revision: 9198

Modified:
   trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js
Log:
RF-3788 

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 14:47:51 UTC (rev 9197)
+++ trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/js/FileUpload.js	2008-06-24 14:51:05 UTC (rev 9198)
@@ -614,7 +614,7 @@
 		if (this.disabled) return;
 		if (!this.checkFileType(elt.value) || !this.checkDuplicated(elt)) {
 			if(this.events.ontyperejected) {
-					this.element.fire("rich:ontyperejected", {});
+					this.element.fire("rich:ontyperejected", { fileName : elt.value });
 			} 
 			return;  
 		}
@@ -705,7 +705,7 @@
 			this.remove(entry);
 			if (entry.state == FileUploadEntry.UPLOAD_SUCCESS) {
 				if(this.events.onclear) {	
-		   			this.element.fire("rich:onclear", {});
+		   			this.element.fire("rich:onclear", {entry : entry});
 				}
 			}
 		} else {
@@ -907,7 +907,7 @@
 			
 			if (newState == FileUploadEntry.UPLOAD_SIZE_ERROR) {
 				if(this.events.onsizerejected) {
-					this.element.fire("rich:onsizerejected", {});
+					this.element.fire("rich:onsizerejected", { entry : entry});
 				} 
 			}
 		
@@ -947,11 +947,11 @@
 
 			if(newState == FileUploadEntry.UPLOAD_CANCELED) {
 				if(this.events.onuploadcanceled) {
-					this.element.fire("rich:onuploadcanceled", {});
+					this.element.fire("rich:onuploadcanceled", {entry : entry});
 				}
 			} else {
 				if(this.events.onerror) {	
-					this.element.fire("rich:onerror", {});
+					this.element.fire("rich:onerror", {entry : entry});
 				}
 			}
 




More information about the richfaces-svn-commits mailing list