aboutsummaryrefslogtreecommitdiffstats
path: root/ui/dialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/dialog.js')
-rw-r--r--ui/dialog.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/dialog.js b/ui/dialog.js
index 2f322aa86..c7ffbd9ef 100644
--- a/ui/dialog.js
+++ b/ui/dialog.js
@@ -118,7 +118,9 @@ $.widget( "ui.dialog", {
index: this.element.parent().children().index( this.element )
};
this.originalTitle = this.element.attr( "title" );
- this.options.title = this.options.title || this.originalTitle;
+ if ( this.options.title == null && this.originalTitle != null ) {
+ this.options.title = this.originalTitle;
+ }
this._createWrapper();
@@ -433,10 +435,11 @@ $.widget( "ui.dialog", {
},
_title: function( title ) {
- if ( !this.options.title ) {
+ if ( this.options.title ) {
+ title.text( this.options.title );
+ } else {
title.html( " " );
}
- title.text( this.options.title );
},
_createButtonPane: function() {