From 58a5e23a7882e4438e60e354f3f2125562f9a540 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Thu, 23 Feb 2012 19:37:31 +0100 Subject: Tooltip: Replace blur with focusout to deal with inputs nested in tooltipped elements. --- tests/visual/tooltip/tooltip.html | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'tests/visual') diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index b282a73b7..eb51d56c6 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -23,8 +23,8 @@ function enable() { // default - $("#context1, form, #childish").tooltip(); - + $("#context1, form, #childish, #nested-input").tooltip(); + // custom class, replaces ui-widget-content $("#context2").tooltip({ tooltipClass: "ui-widget-header" @@ -32,7 +32,7 @@ $("#right1").tooltip({ tooltipClass: "ui-state-error" }); - + // synchronous content $("#footnotes").tooltip({ items: "[href^='#']", @@ -65,7 +65,7 @@ return "Loading..."; } }); - + // custom position $("#right2").tooltip({ tooltipClass: "ui-state-highlight", @@ -75,7 +75,7 @@ offset: "0 10" } }); - + $("#button1").button(); $("#button2").button({ icons: { @@ -97,7 +97,7 @@ }); } enable(); - + $("#disable").toggle(function() { $(":ui-tooltip").tooltip("disable"); }, function() { @@ -126,23 +126,23 @@
collision detection should kick in around here
- +
I'm a link to a footnote. I'm another link to a footnote.
- +
right aligned with custom position
- +
gets its content via ajax
gets its content via ajax, caches the response
- +
span
@@ -150,11 +150,11 @@ nested span
- +
Text in bold.
- +
@@ -165,17 +165,24 @@
- + +
+ + + + +
+
- +
This is the footnote, including other elements
This is the other footnote, including other elements
- + -- cgit v1.2.3