[richfaces-svn-commits] JBoss Rich Faces SVN: r5795 - trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Mon Feb 4 20:09:52 EST 2008


Author: nbelaevski
Date: 2008-02-04 20:09:52 -0500 (Mon, 04 Feb 2008)
New Revision: 5795

Modified:
   trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
DnD cursors: do not apply cursors if dragType is empty

Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js	2008-02-05 01:08:50 UTC (rev 5794)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js	2008-02-05 01:09:52 UTC (rev 5795)
@@ -181,15 +181,15 @@
 
 	startDrag : function(event) {
 		var contentType = this.getContentType();
-		
-		if(this.grabbingCursor) {
-			if(this.grabCursor && this.grabCursor.visible) {
-				this.grabCursor.hideCursor();
-			}
-			this.grabbingCursor.showCursor();		
-		} 
 			
 		if (contentType) {
+			if(this.grabbingCursor) {
+				if(this.grabCursor && this.grabCursor.visible) {
+					this.grabCursor.hideCursor();
+				}
+				this.grabbingCursor.showCursor();		
+			} 
+
 			if (!this.endDragListener) {
 				this.dragTrigger = this.moveDrag.bindAsEventListener(this);
 			




More information about the richfaces-svn-commits mailing list