Author: pyaschenko
Date: 2007-09-07 06:18:58 -0400 (Fri, 07 Sep 2007)
New Revision: 2806
Modified:
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js
Log:
RF-783 fix
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-09-06
23:57:14 UTC (rev 2805)
+++
trunk/ui/tooltip/src/main/resources/org/richfaces/renderkit/html/scripts/tooltip.js 2007-09-07
10:18:58 UTC (rev 2806)
@@ -85,10 +85,10 @@
return ;
}
- var eventCopy = A4J.AJAX.CloneObject(event, false);
+ this.eventCopy = A4J.AJAX.CloneObject(event, false);
this.activationTimerHandle = setTimeout(function() {
- this.doShow(eventCopy);
+ this.doShow(this.eventCopy);
}.bind(this), this.delay);
}.bindAsEventListener(this);
} else {
@@ -276,6 +276,10 @@
var coords = this.fitToolTip(e.clientX, e.clientY, {'x':toolTipX ,
'y':toolTipY},elementDim, horizontalDirection, verticalDirection,
{'x':this.horizontalOffset, 'y':this.verticalOffset});
Element.setStyle(this.toolTip, {"left": coords.x + "px",
"top": coords.y + "px"});
+ if (this.delay>0)
+ {
+ this.eventCopy = A4J.AJAX.CloneObject(e, false);
+ }
},
prePosition: function(basePoint, elementDim, horizontalDirection, verticalDirection,
offset){
Show replies by date