diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-04 11:14:32 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-04 11:14:32 +0200 |
commit | b96126b398777b5ed2ecf795c234f99c544ee61c (patch) | |
tree | 242d0347d257a4504690bc6b9a71f14c54e8f548 /demos/tooltip | |
parent | bba4cb2be68ae6ca71be987bf13f8c7834242221 (diff) | |
download | jquery-ui-b96126b398777b5ed2ecf795c234f99c544ee61c.tar.gz jquery-ui-b96126b398777b5ed2ecf795c234f99c544ee61c.zip |
Popup: Rename _close to close and use it when selecting something within a popup.
Diffstat (limited to 'demos/tooltip')
-rw-r--r-- | demos/tooltip/video-player.html | 8 |
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") }); |