diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-29 09:13:35 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-29 09:13:35 -0400 |
commit | a1f9ca724834c7d1e66401f8cea8063346392770 (patch) | |
tree | 9b89307285c54bd93bd413b4a2d8fcbf9729e9ed /demos | |
parent | 8fc6ee6a19e200cedb324ea34076b0f176964894 (diff) | |
download | jquery-ui-a1f9ca724834c7d1e66401f8cea8063346392770.tar.gz jquery-ui-a1f9ca724834c7d1e66401f8cea8063346392770.zip |
Tooltip video player demo: Close tooltip on click of popup button.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/tooltip/video-player.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html index e0db0575d..1d8458abb 100644 --- a/demos/tooltip/video-player.html +++ b/demos/tooltip/video-player.html @@ -85,9 +85,12 @@ }, text: !!$( this ).attr( "title" ) }); - if ( !button.next().is( ":ui-popup" ) ) { + if ( button.next().is( ":ui-popup" ) ) { + button.click(function( event ) { + $( ".demo" ).tooltip( "close", event ); + }); + } else { button.click(function() { - console.log( "click" ); notify( button ); }); } |