]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Only add the new dialogClass, not the base classes when changing the option.
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 9 Nov 2012 16:48:25 +0000 (17:48 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 26 Nov 2012 09:26:12 +0000 (10:26 +0100)
ui/jquery.ui.dialog.js

index f536120d572e6dc45e68ba56adf73adad20771bb..ab32219c254412b7c7356f83b06fef14ab43d08b 100644 (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 )