diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-16 19:26:22 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-26 10:28:23 +0100 |
commit | 999617343f7b813dc1c8d9c9048489e4d99d0470 (patch) | |
tree | 94df0cfa0fc51c411d259b71c10b06bcf6b00fb8 /ui/jquery.ui.dialog.js | |
parent | d8b98ec3bb077224aff381101e6d845ea6ffe7a3 (diff) | |
download | jquery-ui-999617343f7b813dc1c8d9c9048489e4d99d0470.tar.gz jquery-ui-999617343f7b813dc1c8d9c9048489e4d99d0470.zip |
Dialog: Pass through icons and showText (as 'text') options to button. Fixes #6830 - Allow Icons to be specified for Dialog buttons.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 23c973975..003389823 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -383,8 +383,10 @@ $.widget("ui.dialog", { click.apply( that.element[0], arguments ); }; $( "<button></button>", props ) - // TODO allow passing through button options - .button() + .button({ + icons: props.icons, + text: props.showText + }) .appendTo( that.uiButtonSet ); }); this.uiDialog.addClass( "ui-dialog-buttons" ); |