From f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 9 Nov 2012 17:48:25 +0100 Subject: [PATCH] Dialog: Only add the new dialogClass, not the base classes when changing the option. --- ui/jquery.ui.dialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ) -- 2.39.5