@@ -128,7 +128,7 @@ $.widget( "ui.dialog", {
128
128
. removeAttr ( "title" )
129
129
. appendTo ( this . uiDialog ) ;
130
130
131
- this . _addClass ( "ui-dialog-content" , " ui-widget-content" ) ;
131
+ this . _addClass ( "ui-dialog-content ui-widget-content" ) ;
132
132
133
133
this . _createTitlebar ( ) ;
134
134
this . _createButtonPane ( ) ;
@@ -171,8 +171,6 @@ $.widget( "ui.dialog", {
171
171
// Without detaching first, the following becomes really slow
172
172
. detach ( ) ;
173
173
174
- this . _removeClass ( "ui-dialog-content" , "ui-widget-content" ) ;
175
-
176
174
this . uiDialog . stop ( true , true ) . remove ( ) ;
177
175
178
176
if ( this . originalTitle ) {
@@ -349,7 +347,7 @@ $.widget( "ui.dialog", {
349
347
} )
350
348
. appendTo ( this . _appendTo ( ) ) ;
351
349
352
- this . _addClass ( this . uiDialog , "ui-dialog" , " ui-widget ui-widget-content ui-front" ) ;
350
+ this . _addClass ( this . uiDialog , "ui-dialog ui-widget ui-widget-content ui-front" ) ;
353
351
354
352
this . _on ( this . uiDialog , {
355
353
keydown : function ( event ) {
@@ -398,9 +396,11 @@ $.widget( "ui.dialog", {
398
396
} ,
399
397
400
398
_createTitlebar : function ( ) {
401
- this . uiDialogTitlebar = $ ( "<div>" )
402
- . addClass ( "ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix" )
403
- . prependTo ( this . uiDialog ) ;
399
+ this . uiDialogTitlebar = $ ( "<div>" ) . prependTo ( this . uiDialog ) ;
400
+
401
+ this . _addClass ( this . uiDialogTitlebar ,
402
+ "ui-dialog-titlebar ui-widget-header ui-helper-clearfix" ) ;
403
+
404
404
this . _on ( this . uiDialogTitlebar , {
405
405
mousedown : function ( event ) {
406
406
// Don't prevent click on close button (#8838)
@@ -455,8 +455,7 @@ $.widget( "ui.dialog", {
455
455
456
456
_createButtonPane : function ( ) {
457
457
this . uiDialogButtonPane = $ ( "<div>" ) ;
458
- this . _addClass ( this . uiDialogButtonPane , "ui-dialog-buttonpane" ,
459
- "ui-widget-content ui-helper-clearfix" ) ;
458
+ this . _addClass ( this . uiDialogButtonPane , "ui-dialog-buttonpane ui-widget-content ui-helper-clearfix" ) ;
460
459
461
460
this . uiButtonSet = $ ( "<div>" )
462
461
. appendTo ( this . uiDialogButtonPane ) ;
@@ -853,7 +852,7 @@ $.widget( "ui.dialog", {
853
852
this . overlay = $ ( "<div>" )
854
853
. appendTo ( this . _appendTo ( ) ) ;
855
854
856
- this . _addClass ( this . overlay , "ui-widget-overlay" , " ui-front" ) ;
855
+ this . _addClass ( this . overlay , "ui-widget-overlay ui-front" ) ;
857
856
this . _on ( this . overlay , {
858
857
mousedown : "_keepFocus"
859
858
} ) ;
0 commit comments