From b96126b398777b5ed2ecf795c234f99c544ee61c Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Wed, 4 May 2011 11:14:32 +0200 Subject: Popup: Rename _close to close and use it when selecting something within a popup. --- demos/tooltip/video-player.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'demos/tooltip') 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") }); -- cgit v1.2.3