[richfaces-svn-commits] JBoss Rich Faces SVN: r4930 - 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
Wed Dec 19 13:00:06 EST 2007


Author: abelevich
Date: 2007-12-19 13:00:05 -0500 (Wed, 19 Dec 2007)
New Revision: 4930

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-dropzone.js
Log:
change applying cursor style mechanism 

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	2007-12-19 17:37:23 UTC (rev 4929)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-draggable.js	2007-12-19 18:00:05 UTC (rev 4930)
@@ -72,12 +72,12 @@
 		if (this.element.style.cursor && this.element.style.cursor != "") {
 			//save cursor if exist
 			this.oldcursor = this.element.style.cursor;
-		}	 
+		}	
 	},
 	
 	showCursor: function() {
 		var parent = this.element;
-		Element.setStyle(parent,this.cursor);
+		this.element.style.cursor = this.cursor;
 		this.visible = true;
 	},
 	
@@ -87,10 +87,9 @@
 		this.visible = false;
 		if (this.oldcursor) {
 			//restore saved cursor
-			Element.setStyle(parent,"cursor: " + this.oldcursor);
+			this.element.style.cursor = this.oldcursor;
 		} 
 	}
-
 }; 
 
 DnD.Draggable.prototype = {

Modified: trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js
===================================================================
--- trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js	2007-12-19 17:37:23 UTC (rev 4929)
+++ trunk/framework/impl/src/main/resources/org/richfaces/renderkit/html/scripts/dnd/dnd-dropzone.js	2007-12-19 18:00:05 UTC (rev 4930)
@@ -80,7 +80,7 @@
 			var cursor = this.getCursorForType(drag.type);
 			if (cursor) {
 				// show resolved cursor
-				this.acceptMappingCursor = new DnD.Cursor(this.getElement(), "cursor: " + cursor);
+				this.acceptMappingCursor = new DnD.Cursor(this.getElement(), cursor);
 				this.acceptMappingCursor.showCursor();
 			} else if(this.acceptCursor) {
 				// show default cursor




More information about the richfaces-svn-commits mailing list