Author: sergeyhalipov
Date: 2007-09-28 15:31:28 -0400 (Fri, 28 Sep 2007)
New Revision: 3168
Modified:
trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js
Log:
http://jira.jboss.com/jira/browse/RF-911
Modified:
trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js
===================================================================
---
trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js 2007-09-28
16:34:32 UTC (rev 3167)
+++
trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts/simple-draggable.js 2007-09-28
19:31:28 UTC (rev 3168)
@@ -17,6 +17,11 @@
this.eventMouseDown = this.initDrag.bindAsEventListener(this);
Event.observe(this.id, "mousedown", this.eventMouseDown);
+
+ this.form = this.id;
+ while (this.form && !/^form$/i.test(this.form.tagName)) {
+ this.form = this.form.parentNode;
+ }
},
getDnDDragParams: function() {
@@ -43,6 +48,10 @@
this.setIndicator(event);
//this.dragEnter(event);
+
+ if (this.form) {
+ drag.params[this.form.id] = this.form.id;
+ }
},
getContentType: function() {