git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Now using the dom level 3 API for parsing. Also extended the test case
[utils]
/
wicket
/
components
/
src
/
main
/
resources
/
org
/
wamblee
/
wicket
/
behavior
/
wamblee-tooltip.js
diff --git
a/wicket/components/src/main/resources/org/wamblee/wicket/behavior/wamblee-tooltip.js
b/wicket/components/src/main/resources/org/wamblee/wicket/behavior/wamblee-tooltip.js
index 7773cb4ad4bb5c829684066b2981a9aa7bf4484f..3bdd99d13b218d1469cbc25922ba32cc855bb5f8 100644
(file)
--- a/
wicket/components/src/main/resources/org/wamblee/wicket/behavior/wamblee-tooltip.js
+++ b/
wicket/components/src/main/resources/org/wamblee/wicket/behavior/wamblee-tooltip.js
@@
-25,8
+25,8
@@
var options = $.extend({
delay : 500,
var options = $.extend({
delay : 500,
- fadein :
50
0,
- fadeout:
2
00,
+ fadein :
25
0,
+ fadeout:
1
00,
border : "1px solid black",
padding : "0.2em 0.5em 0.2em 0.5em",
background : "yellow"
border : "1px solid black",
padding : "0.2em 0.5em 0.2em 0.5em",
background : "yellow"
@@
-34,6
+34,9
@@
// Show the tooltip.
var tooltipShow = function(event) {
// Show the tooltip.
var tooltipShow = function(event) {
+ timerid = setTimeout(function() {
+ content.fadeIn(options.fadein);
+ }, options.delay);
var content = $("#tooltipContent").text(text).css({
position : "absolute",
top : event.pageY + 5,
var content = $("#tooltipContent").text(text).css({
position : "absolute",
top : event.pageY + 5,
@@
-42,21
+45,17
@@
padding : options.padding,
background : options.background
});
padding : options.padding,
background : options.background
});
- timerid = setTimeout(function() {
- content.fadeIn(options.fadein);
- }, options.delay);
-
// console.log("start");
};
// Hide the tooltip.
var tooltipHide = function(event) {
// console.log("start");
};
// Hide the tooltip.
var tooltipHide = function(event) {
- $("#tooltipContent").fadeOut(options.fadeout);
if (timerid) {
console.log("clear timeout");
clearTimeout(timerid);
timerid = undefined;
}
if (timerid) {
console.log("clear timeout");
clearTimeout(timerid);
timerid = undefined;
}
+ $("#tooltipContent").fadeOut(options.fadeout);
}
// Add hover listeners.
}
// Add hover listeners.