Author: abelevich
Date: 2010-12-02 05:24:14 -0500 (Thu, 02 Dec 2010)
New Revision: 20290
Modified:
sandbox/trunk/ui/drag-drop/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js
Log:
clear jQuery draggable classes
Modified:
sandbox/trunk/ui/drag-drop/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js
===================================================================
---
sandbox/trunk/ui/drag-drop/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js 2010-12-02
10:15:11 UTC (rev 20289)
+++
sandbox/trunk/ui/drag-drop/ui/src/main/resources/META-INF/resources/org.richfaces/dnd-draggable.js 2010-12-02
10:24:14 UTC (rev 20290)
@@ -53,6 +53,7 @@
ui.helper.addClass(indicator.draggingClass());
}
}
+ this.__clearDraggableCss(ui.helper);
},
dragStop: function(e, ui){
@@ -65,6 +66,13 @@
__isCustomDragIndicator: function() {
return this.dragElement.data("indicator");
+ },
+
+ __clearDraggableCss: function(element) {
+ if(element && element.removeClass) {
+ //draggable 'addClasses: false' doesn't work so clear jQuery style
+ element.removeClass("ui-draggable-dragging");
+ }
}
}
})());