From: Jörn Zaefferer Date: Fri, 9 Nov 2012 16:48:25 +0000 (+0100) Subject: Dialog: Only add the new dialogClass, not the base classes when changing the option. X-Git-Tag: 1.10.0-beta.1~123 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f;p=jquery-ui.git Dialog: Only add the new dialogClass, not the base classes when changing the option. --- diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index f536120d5..ab32219c2 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -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 )