From b8fff16dc4580187d26a8468ee9dc31387a3b225 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Mon, 30 Sep 2024 18:05:22 +0200 Subject: Demos: Remove deprecated button APIs Remove usage of deprecated button options: * `icons`: https://jqueryui.com/upgrade-guide/1.12/#deprecated-icons-options-in-favor-of-icon-and-iconposition * `text`: https://jqueryui.com/upgrade-guide/1.12/#deprecated-text-option-in-favor-of-showlabel Fixes gh-2295 Closes gh-2296 --- demos/tooltip/video-player.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'demos/tooltip/video-player.html') diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html index 74db642aa..c7601b747 100644 --- a/demos/tooltip/video-player.html +++ b/demos/tooltip/video-player.html @@ -63,10 +63,8 @@ $( "button" ).each(function() { var button = $( this ).button({ - icons: { - primary: $( this ).data( "icon" ) - }, - text: !!$( this ).attr( "title" ) + icon: $( this ).data( "icon" ), + showLabel: !!$( this ).attr( "title" ) }); button.not( ".menu" ).on( "click", function() { notify( button ); -- cgit v1.2.3