aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-09 17:48:25 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2012-11-26 10:26:12 +0100
commitf7d3a51589b30fd1be59339ca65b0e4bc6cfac8f (patch)
tree08aed5f98f44ac3fd21ddf12a9cbebff68410de6
parent324d54dd3283bb83c84de238927724ce8e29efcc (diff)
downloadjquery-ui-f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f.tar.gz
jquery-ui-f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f.zip
Dialog: Only add the new dialogClass, not the base classes when changing the option.
-rw-r--r--ui/jquery.ui.dialog.js3
1 files changed, 1 insertions, 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 )