aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2024-09-30 18:05:22 +0200
committerGitHub <noreply@github.com>2024-09-30 18:05:22 +0200
commitb8fff16dc4580187d26a8468ee9dc31387a3b225 (patch)
tree58d3a51480b2a046f39ebdc0c55d97ca0097e74c /demos
parent36ed9fc3b0f0ce348a360e8a10500475337368b3 (diff)
downloadjquery-ui-b8fff16dc4580187d26a8468ee9dc31387a3b225.tar.gz
jquery-ui-b8fff16dc4580187d26a8468ee9dc31387a3b225.zip
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
Diffstat (limited to 'demos')
-rw-r--r--demos/autocomplete/combobox.html6
-rw-r--r--demos/tooltip/video-player.html6
2 files changed, 4 insertions, 8 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html
index 9fc997c11..afe301349 100644
--- a/demos/autocomplete/combobox.html
+++ b/demos/autocomplete/combobox.html
@@ -78,10 +78,8 @@
.tooltip()
.appendTo( this.wrapper )
.button({
- icons: {
- primary: "ui-icon-triangle-1-s"
- },
- text: false
+ icon: "ui-icon-triangle-1-s",
+ showLabel: false
})
.removeClass( "ui-corner-all" )
.addClass( "custom-combobox-toggle ui-corner-right" )
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 );