[richfaces-svn-commits] JBoss Rich Faces SVN: r5321 - trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jan 11 21:16:28 EST 2008


Author: nbelaevski
Date: 2008-01-11 21:16:28 -0500 (Fri, 11 Jan 2008)
New Revision: 5321

Modified:
   trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
http://jira.jboss.com/jira/browse/RF-1845

Modified: trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
===================================================================
--- trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js	2008-01-12 01:47:59 UTC (rev 5320)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js	2008-01-12 02:16:28 UTC (rev 5321)
@@ -102,8 +102,13 @@
 				if (this.followMouse) Event.stopObserving(this.parent, 'mousemove', this.setToolTipPositionListner, false);
 						
 				Event.stopObserving(this.parent, this.event, this.customEventHandlerListner, false);
-				Event.stopObserving(this.parent, "mouseout", this.doHideListner, false);
-				Event.stopObserving(this.toolTip, 'mouseout', this.leaveToolTipListner, false);
+				
+				if (this.event != "focus") {
+					Event.stopObserving(this.parent, "mouseout", this.doHideListner, false);
+					Event.stopObserving(this.toolTip, "mouseout", this.leaveToolTipListner, false);
+				} else {
+					Event.stopObserving(this.parent, "blur", this.doHideListner, false);
+				}
 			}
 
 			this.hintParentElement = null;
@@ -164,8 +169,13 @@
 		}
 
 		Event.observe(this.parent, this.event, this.customEventHandlerListner, false);
-		Event.observe(this.parent, "mouseout", this.doHideListner, false);
-		Event.observe(this.toolTip, 'mouseout', this.leaveToolTipListner, false);
+		
+		if (this.event != "focus") {
+			Event.observe(this.parent, "mouseout", this.doHideListner, false);
+			Event.observe(this.toolTip, "mouseout", this.leaveToolTipListner, false);
+		} else {
+			Event.observe(this.parent, "blur", this.doHideListner, false);
+		}
 	},
 	
 	detectAncestorNode: function(leaf, element) {




More information about the richfaces-svn-commits mailing list