diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-07-25 08:16:13 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-07-25 08:38:51 -0400 |
commit | 6c754b4b5b19a2a12eae68058458ef9ff7b72a0a (patch) | |
tree | ac063a342b9bd84b27d76f5c8398e1ebbd32166f /ui | |
parent | f67f9293ae962dc814e66ac110b4f82404d14f69 (diff) | |
download | jquery-ui-6c754b4b5b19a2a12eae68058458ef9ff7b72a0a.tar.gz jquery-ui-6c754b4b5b19a2a12eae68058458ef9ff7b72a0a.zip |
Dialog: Support deprecated button options
Fixes #15016
Closes gh-1723
Diffstat (limited to 'ui')
-rw-r--r-- | ui/widgets/dialog.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/widgets/dialog.js b/ui/widgets/dialog.js index 1bbb3fcd2..c8829331f 100644 --- a/ui/widgets/dialog.js +++ b/ui/widgets/dialog.js @@ -500,7 +500,11 @@ $.widget( "ui.dialog", { buttonOptions = { icon: props.icon, iconPosition: props.iconPosition, - showLabel: props.showLabel + showLabel: props.showLabel, + + // Deprecated options + icons: props.icons, + text: props.text }; delete props.click; @@ -508,6 +512,12 @@ $.widget( "ui.dialog", { delete props.iconPosition; delete props.showLabel; + // Deprecated options + delete props.icons; + if ( typeof props.text === "boolean" ) { + delete props.text; + } + $( "<button></button>", props ) .button( buttonOptions ) .appendTo( that.uiButtonSet ) |