We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ca4617 commit 6d9194aCopy full SHA for 6d9194a
ui/dialog.js
@@ -107,7 +107,9 @@ return $.widget( "ui.dialog", {
107
index: this.element.parent().children().index( this.element )
108
};
109
this.originalTitle = this.element.attr( "title" );
110
- this.options.title = this.options.title || this.originalTitle;
+ if ( this.options.title == null && this.originalTitle != null ) {
111
+ this.options.title = this.originalTitle;
112
+ }
113
114
this._createWrapper();
115
@@ -422,10 +424,11 @@ return $.widget( "ui.dialog", {
422
424
},
423
425
426
_title: function( title ) {
- if ( !this.options.title ) {
427
+ if ( this.options.title ) {
428
+ title.text( this.options.title );
429
+ } else {
430
title.html( " " );
431
}
- title.text( this.options.title );
432
433
434
_createButtonPane: function() {
0 commit comments