[richfaces-svn-commits] JBoss Rich Faces SVN: r11685 - 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
Tue Dec 9 17:14:20 EST 2008


Author: nbelaevski
Date: 2008-12-09 17:14:20 -0500 (Tue, 09 Dec 2008)
New Revision: 11685

Modified:
   trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js
Log:
https://jira.jboss.org/jira/browse/RF-4489

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-12-09 19:23:39 UTC (rev 11684)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js	2008-12-09 22:14:20 UTC (rev 11685)
@@ -179,10 +179,12 @@
 		}
 	},
 
+	isDragEnabled: function() {
+		return !!this.getContentType();
+	},
+
 	startDrag : function(event) {
-		var contentType = this.getContentType();
-			
-		if (contentType) {
+		if (this.isDragEnabled()) {
 			if(this.grabbingCursor) {
 				if(this.grabCursor && this.grabCursor.visible) {
 					this.grabCursor.hideCursor();




More information about the richfaces-svn-commits mailing list