[richfaces-svn-commits] JBoss Rich Faces SVN: r3168 - trunk/ui/drag-drop/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Fri Sep 28 15:31:28 EDT 2007
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() {
More information about the richfaces-svn-commits
mailing list