From 6204e1a3c4197d4c612e786337ee371295364ee2 Mon Sep 17 00:00:00 2001
From: jzaefferer
Date: Thu, 8 Apr 2010 23:21:47 +0200
Subject: [PATCH] The accidental merge of tooltip into master was reverted in
master, that revert got merged back into tooltip; now reverting that revert
to get the tooltip stuff back, should then make it easy to merge into master
once tooltip is done
---
demos/index.html | 2 +
demos/tooltip/default.html | 48 +++++
demos/tooltip/forms.html | 69 ++++++
demos/tooltip/index.html | 21 ++
demos/tooltip/tracking.html | 65 ++++++
tests/visual/compound/tabs_tooltips.html | 37 ++++
tests/visual/compound/widgets_in_dialog.html | 9 +-
tests/visual/index.html | 2 +
tests/visual/tooltip/ajaxcontent.php | 2 +
tests/visual/tooltip/callout.html | 213 +++++++++++++++++++
tests/visual/tooltip/tooltip.html | 149 +++++++++++++
themes/base/jquery.ui.base.css | 1 +
themes/base/jquery.ui.tooltip.css | 14 ++
ui/jquery.ui.tooltip.js | 145 +++++++++++++
14 files changed, 774 insertions(+), 3 deletions(-)
create mode 100644 demos/tooltip/default.html
create mode 100644 demos/tooltip/forms.html
create mode 100644 demos/tooltip/index.html
create mode 100644 demos/tooltip/tracking.html
create mode 100644 tests/visual/compound/tabs_tooltips.html
create mode 100644 tests/visual/tooltip/ajaxcontent.php
create mode 100644 tests/visual/tooltip/callout.html
create mode 100644 tests/visual/tooltip/tooltip.html
create mode 100644 themes/base/jquery.ui.tooltip.css
create mode 100644 ui/jquery.ui.tooltip.js
diff --git a/demos/index.html b/demos/index.html
index db3e2bf83..c9f690921 100644
--- a/demos/index.html
+++ b/demos/index.html
@@ -25,6 +25,7 @@
+
@@ -268,6 +269,7 @@
Progressbar
Slider
Tabs
+ Tooltip
Effects
Color Animation
Toggle Class
diff --git a/demos/tooltip/default.html b/demos/tooltip/default.html
new file mode 100644
index 000000000..22dac4f90
--- /dev/null
+++ b/demos/tooltip/default.html
@@ -0,0 +1,48 @@
+
+
+
+ jQuery UI Tooltip - Default demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Tooltips can be attached to any element. When you hover
+ the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.
+
+
But as it's not a native tooltip, it can be styled. Any themes built with
+ ThemeRoller
+ will also style tooltip's accordingly.
+
Tooltip's are also useful for form elements, to show some additional information in the context of each field.
+
Your age:
+
Click the field to see the tooltip; when you tab out of the field, it gets hidden.
+
+
+
+
+
+
+
+
Hover the links above or use the tab key to cycle the focus on each element.
+
+
+
+
+
+
+
diff --git a/demos/tooltip/forms.html b/demos/tooltip/forms.html
new file mode 100644
index 000000000..626161d6e
--- /dev/null
+++ b/demos/tooltip/forms.html
@@ -0,0 +1,69 @@
+
+
+
+ jQuery UI Tooltip - Default demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Hover the questionmark-buttons or use the button below to display the help texts all at once. Click again to hide them.
+
+
+
+
+
+
+
diff --git a/demos/tooltip/index.html b/demos/tooltip/index.html
new file mode 100644
index 000000000..ed5cd10e5
--- /dev/null
+++ b/demos/tooltip/index.html
@@ -0,0 +1,21 @@
+
+
+
+ jQuery UI Tooltip Demos
+
+
+
+
+
+
+
+
diff --git a/demos/tooltip/tracking.html b/demos/tooltip/tracking.html
new file mode 100644
index 000000000..9af4d0d09
--- /dev/null
+++ b/demos/tooltip/tracking.html
@@ -0,0 +1,65 @@
+
+
+
+ jQuery UI Tooltip - Default demo
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Tooltips can be attached to any element. When you hover
+ the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.
+
+
But as it's not a native tooltip, it can be styled. Any themes built with
+ ThemeRoller
+ will also style tooltip's accordingly.
+
Tooltip's are also useful for form elements, to show some additional information in the context of each field.
+
Your age:
+
Click the field to see the tooltip; when you tab out of the field, it gets hidden.
+
+
+
+
+
+
+
+
Here the tooltips are positioned relative to the mouse, and follow the mouse while it moves above the element.
+
+
+
+
+
+
+
diff --git a/tests/visual/compound/tabs_tooltips.html b/tests/visual/compound/tabs_tooltips.html
new file mode 100644
index 000000000..00046fe0d
--- /dev/null
+++ b/tests/visual/compound/tabs_tooltips.html
@@ -0,0 +1,37 @@
+
+
+
+
+ Compound Visual Test : Tabs in Tabs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/visual/compound/widgets_in_dialog.html b/tests/visual/compound/widgets_in_dialog.html
index 7551efd8d..e2eb366b4 100644
--- a/tests/visual/compound/widgets_in_dialog.html
+++ b/tests/visual/compound/widgets_in_dialog.html
@@ -20,8 +20,11 @@
+
@@ -76,11 +79,11 @@
Another button
- Progress:
+ Progress:
-
+
+
+
+
+
+
+ collision detection should kick in around here
+
+
+
+
+
+
+
+ right aligned with custom position
+
+
+
+ gets its content via ajax
+
+
+
+
span
+
+ div
+ nested span
+
+
+
+
+
+
+
+
Toggle disabled
+
Toggle widget
+
+
+
+
diff --git a/tests/visual/tooltip/ajaxcontent.php b/tests/visual/tooltip/ajaxcontent.php
new file mode 100644
index 000000000..a689a734d
--- /dev/null
+++ b/tests/visual/tooltip/ajaxcontent.php
@@ -0,0 +1,2 @@
+
+Hello world!
\ No newline at end of file
diff --git a/tests/visual/tooltip/callout.html b/tests/visual/tooltip/callout.html
new file mode 100644
index 000000000..3ef694987
--- /dev/null
+++ b/tests/visual/tooltip/callout.html
@@ -0,0 +1,213 @@
+
+
+