Skip to content

Commit a1f9ca7

Browse files
committed
Tooltip video player demo: Close tooltip on click of popup button.
1 parent 8fc6ee6 commit a1f9ca7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

demos/tooltip/video-player.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@
8585
},
8686
text: !!$( this ).attr( "title" )
8787
});
88-
if ( !button.next().is( ":ui-popup" ) ) {
88+
if ( button.next().is( ":ui-popup" ) ) {
89+
button.click(function( event ) {
90+
$( ".demo" ).tooltip( "close", event );
91+
});
92+
} else {
8993
button.click(function() {
90-
console.log( "click" );
9194
notify( button );
9295
});
9396
}

0 commit comments

Comments
 (0)