[richfaces-svn-commits] JBoss Rich Faces SVN: r11695 - 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 Dec 10 10:12:55 EST 2008
Author: pyaschenko
Date: 2008-12-10 10:12:55 -0500 (Wed, 10 Dec 2008)
New Revision: 11695
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
https://jira.jboss.org/jira/browse/RF-4459
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-12-10 14:20:41 UTC (rev 11694)
+++ trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2008-12-10 15:12:55 UTC (rev 11695)
@@ -238,7 +238,11 @@
if (e.srcElement)
this.hintParentElement = e.srcElement;
-
+ if (this.hidingTimerHandle)
+ {
+ window.clearTimeout(this.hidingTimerHandle);
+ this.hidingTimerHandle = undefined;
+ }
if(this.mode == 'ajax'){
if(this.toolTipDefaultContent){
this.toolTipContent.innerHTML = this.toolTipDefaultContent.innerHTML;
@@ -267,11 +271,6 @@
eval(this.ajaxExecuteString);
} else {
this.setToolTipPosition(e);
- if (this.hidingTimerHandle)
- {
- window.clearTimeout(this.hidingTimerHandle);
- this.hidingTimerHandle = undefined;
- }
if (this.delay>0)
{
this.activationTimerHandle = window.setTimeout(function()
@@ -345,6 +344,11 @@
this.hidingTimerHandle = window.setTimeout(function()
{
this.hideDiv(event);
+ if (this.hidingTimerHandle)
+ {
+ window.clearTimeout(this.hidingTimerHandle);
+ this.hidingTimerHandle = undefined;
+ }
}.bindAsEventListener(this), this.hideDelay);
}
else this.hideDiv();
More information about the richfaces-svn-commits
mailing list