aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tooltip
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tooltip')
-rw-r--r--demos/tooltip/video-player.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html
index c890c76b4..2e2419760 100644
--- a/demos/tooltip/video-player.html
+++ b/demos/tooltip/video-player.html
@@ -24,8 +24,12 @@
});
$(".set").buttonset();
- // TODO hide the tooltip when clicking the button
- $("ul").menu().popup({
+ $("ul").menu({
+ select: function() {
+ // would also execute some other action here
+ $(this).popup("close");
+ }
+ }).popup({
trigger: $(".menu")
});