[richfaces-svn-commits] JBoss Rich Faces SVN: r391 - trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Apr 12 15:03:45 EDT 2007
Author: sergeyhalipov
Date: 2007-04-12 15:03:45 -0400 (Thu, 12 Apr 2007)
New Revision: 391
Modified:
trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
Log:
Make selection visually changed on mousedown, but be submitted on mouseup like in Windows Explorer.
Modified: trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
--- trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-04-12 18:50:29 UTC (rev 390)
+++ trunk/richfaces/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-04-12 19:03:45 UTC (rev 391)
@@ -196,11 +196,7 @@
}
this.tree.input.value = this.id;
this.tree.selectionManager.activeItem = this;
-
- if (e) {
- this.fireSelectEvent();
- }
-
+
if (this.tree.options.onSelection) this.tree.options.onSelection(this.id);
this.tree.showNode(this.elements.text.parentNode);
@@ -278,6 +274,10 @@
},
stopListenDrag: function(e) {
+ if (e) {
+ this.fireSelectEvent();
+ }
+
this.dragStarted = false;
Event.stopObserving(this.elements.icon, "mousemove", this.listenDragBound);
More information about the richfaces-svn-commits
mailing list