diff options
Diffstat (limited to 'ui/widgets/dialog.js')
-rw-r--r-- | ui/widgets/dialog.js | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/ui/widgets/dialog.js b/ui/widgets/dialog.js index 6070014c9..b143d291e 100644 --- a/ui/widgets/dialog.js +++ b/ui/widgets/dialog.js @@ -427,10 +427,8 @@ $.widget( "ui.dialog", { this.uiDialogTitlebarClose = $( "<button type='button'></button>" ) .button( { label: this.options.closeText, - icons: { - primary: "ui-icon-closethick" - }, - text: false + icon: "ui-icon-closethick", + showLabel: false } ) .appendTo( this.uiDialogTitlebar ); @@ -498,12 +496,15 @@ $.widget( "ui.dialog", { // Change the context for the click callback to be the main element click = props.click; buttonOptions = { - icons: props.icons, - text: props.showText + icon: props.icon, + iconPosition: props.iconPosition, + showLabel: props.showLabel }; - delete props.icons; - delete props.showText; + delete props.click; + delete props.icon; + delete props.iconPosition; + delete props.showLabel; $( "<button></button>", props ) .button( buttonOptions ) |