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 @@ -107,7 +107,9 @@ return $.widget( "ui.dialog", {
107
107
index : this . element . parent ( ) . children ( ) . index ( this . element )
108
108
} ;
109
109
this . originalTitle = this . element . attr ( "title" ) ;
110
- this . options . title = this . options . title || this . originalTitle ;
110
+ if ( this . options . title == null && this . originalTitle != null ) {
111
+ this . options . title = this . originalTitle ;
112
+ }
111
113
112
114
this . _createWrapper ( ) ;
113
115
@@ -422,10 +424,11 @@ return $.widget( "ui.dialog", {
422
424
} ,
423
425
424
426
_title : function ( title ) {
425
- if ( ! this . options . title ) {
427
+ if ( this . options . title ) {
428
+ title . text ( this . options . title ) ;
429
+ } else {
426
430
title . html ( " " ) ;
427
431
}
428
- title . text ( this . options . title ) ;
429
432
} ,
430
433
431
434
_createButtonPane : function ( ) {
You can’t perform that action at this time.
0 commit comments