diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-09 17:48:25 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2012-11-26 10:26:12 +0100 |
commit | f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f (patch) | |
tree | 08aed5f98f44ac3fd21ddf12a9cbebff68410de6 /ui | |
parent | 324d54dd3283bb83c84de238927724ce8e29efcc (diff) | |
download | jquery-ui-f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f.tar.gz jquery-ui-f7d3a51589b30fd1be59339ca65b0e4bc6cfac8f.zip |
Dialog: Only add the new dialogClass, not the base classes when changing the option.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.dialog.js | 3 |
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 ) |