aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'ui/widgets')
-rw-r--r--ui/widgets/dialog.js12
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 )