[seam-commits] Seam SVN: r11516 - sandbox/trunk/modules/xwidgets/prototype.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Sep 24 23:33:47 EDT 2009
Author: shane.bryzak at jboss.com
Date: 2009-09-24 23:33:47 -0400 (Thu, 24 Sep 2009)
New Revision: 11516
Modified:
sandbox/trunk/modules/xwidgets/prototype/tree.html
sandbox/trunk/modules/xwidgets/prototype/tree.js
Log:
fix drag and drop exception
Modified: sandbox/trunk/modules/xwidgets/prototype/tree.html
===================================================================
--- sandbox/trunk/modules/xwidgets/prototype/tree.html 2009-09-25 03:29:41 UTC (rev 11515)
+++ sandbox/trunk/modules/xwidgets/prototype/tree.html 2009-09-25 03:33:47 UTC (rev 11516)
@@ -8,7 +8,9 @@
<body>
- <h1>Tree control prototype</h1>
+ <h1>Tree control prototype</h1>
+
+ <div>Try dragging and dropping nodes within the tree.</div>
<button onclick="javascript:removeSelected()">Remove node</button>
<button onclick="javascript:renameSelected()">Rename node</button>
Modified: sandbox/trunk/modules/xwidgets/prototype/tree.js
===================================================================
--- sandbox/trunk/modules/xwidgets/prototype/tree.js 2009-09-25 03:29:41 UTC (rev 11515)
+++ sandbox/trunk/modules/xwidgets/prototype/tree.js 2009-09-25 03:33:47 UTC (rev 11516)
@@ -369,7 +369,7 @@
{
if (xw.controls.Tree.draggedNode == null)
{
- var distance = xw.controls.Tree.util.calcDistance(Tree.util.getMousePos(event), xw.controls.Tree.mouseDownStartPos);
+ var distance = xw.controls.Tree.util.calcDistance(xw.controls.Tree.util.getMousePos(event), xw.controls.Tree.mouseDownStartPos);
if (distance > xw.controls.Tree.dragThreshold)
{
xw.controls.Tree.draggedNode = xw.controls.Tree.mouseDownNode;
More information about the seam-commits
mailing list