Dialog: added options to the buttons for icons. Fixed #6830 - Allow Icons to be specified for Dialog buttons #423

Closed
wants to merge 1 commit into
from
View
2 ui/jquery.ui.dialog.js
@@ -360,7 +360,7 @@ $.widget("ui.dialog", {
})
.appendTo( uiButtonSet );
if ( $.fn.button ) {
- button.button();
+ button.button({icons: props.icons, text: props.showText});
}
});
self.uiDialog.addClass( "ui-dialog-buttons" );