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": case "dialogClass":
uiDialog uiDialog
.removeClass( this.options.dialogClass ) .removeClass( this.options.dialogClass )
// TODO why adding uiDialogClasses again? we didn't remove those .addClass( value );
.addClass( uiDialogClasses + value );
break; break;
case "disabled": case "disabled":
// TODO use toggleClass( "ui-dialog-disabled", value ) // TODO use toggleClass( "ui-dialog-disabled", value )