Dialog: Only add the new dialogClass, not the base classes when changing the option.

This commit is contained in:
Jörn Zaefferer 2012-11-09 17:48:25 +01:00
parent 324d54dd32
commit f7d3a51589

View File

@ -578,8 +578,7 @@ $.widget("ui.dialog", {
case "dialogClass":
uiDialog
.removeClass( this.options.dialogClass )
// TODO why adding uiDialogClasses again? we didn't remove those
.addClass( uiDialogClasses + value );
.addClass( value );
break;
case "disabled":
// TODO use toggleClass( "ui-dialog-disabled", value )