[richfaces-svn-commits] JBoss Rich Faces SVN: r2599 - 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
Wed Aug 29 22:15:28 EDT 2007
Author: nbelaevski
Date: 2007-08-29 22:15:28 -0400 (Wed, 29 Aug 2007)
New Revision: 2599
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
http://jira.jboss.com/jira/browse/RF-766
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 2007-08-30 02:02:12 UTC (rev 2598)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-08-30 02:15:28 UTC (rev 2599)
@@ -190,6 +190,11 @@
if(!needToHide) return;
+ if (this.queuedToolTip) {
+ clearTimeout(this.queuedToolTip);
+ this.queuedToolTip = undefined;
+ }
+
var fakeEvent = false;
fakeEvent = this.detectAncestorNode(e.toElement,this.toolTip);
fakeEvent = fakeEvent || this.detectAncestorNode(e.relatedTarget,this.toolTip);
@@ -358,7 +363,7 @@
}
}
if(this.delay > 0){
- setTimeout('Richfaces.tooltips[\'' + this.parentId + '\'].setToolTipVisible(true)', this.delay);
+ this.queuedToolTip = setTimeout('Richfaces.tooltips[\'' + this.parentId + '\'].setToolTipVisible(true)', this.delay);
} else {
this.setToolTipVisible(true);
}
@@ -371,6 +376,7 @@
},
setToolTipVisible: function(runOnComplete){
+ this.queuedToolTip = undefined;
this.toolTip.style.display = "block";
this.toolTip.style.visibility = "visible";
if(this.iframe){
More information about the richfaces-svn-commits
mailing list