File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,9 @@ $.widget( "ui.dialog", {
118
118
index : this . element . parent ( ) . children ( ) . index ( this . element )
119
119
} ;
120
120
this . originalTitle = this . element . attr ( "title" ) ;
121
- this . options . title = this . options . title || this . originalTitle ;
121
+ if ( this . options . title == null && this . originalTitle != null ) {
122
+ this . options . title = this . originalTitle ;
123
+ }
122
124
123
125
this . _createWrapper ( ) ;
124
126
@@ -433,10 +435,11 @@ $.widget( "ui.dialog", {
433
435
} ,
434
436
435
437
_title : function ( title ) {
436
- if ( ! this . options . title ) {
438
+ if ( this . options . title ) {
439
+ title . text ( this . options . title ) ;
440
+ } else {
437
441
title . html ( " " ) ;
438
442
}
439
- title . text ( this . options . title ) ;
440
443
} ,
441
444
442
445
_createButtonPane : function ( ) {
You can’t perform that action at this time.
0 commit comments