We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4363ab commit fdbb85bCopy full SHA for fdbb85b
ui/dialog.js
@@ -118,7 +118,9 @@ $.widget( "ui.dialog", {
118
index: this.element.parent().children().index( this.element )
119
};
120
this.originalTitle = this.element.attr( "title" );
121
- this.options.title = this.options.title || this.originalTitle;
+ if ( this.options.title == null && this.originalTitle != null ) {
122
+ this.options.title = this.originalTitle;
123
+ }
124
125
this._createWrapper();
126
@@ -433,10 +435,11 @@ $.widget( "ui.dialog", {
433
435
},
434
436
437
_title: function( title ) {
- if ( !this.options.title ) {
438
+ if ( this.options.title ) {
439
+ title.text( this.options.title );
440
+ } else {
441
title.html( " " );
442
}
- title.text( this.options.title );
443
444
445
_createButtonPane: function() {
0 commit comments