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", {
118118 index : this . element . parent ( ) . children ( ) . index ( this . element )
119119 } ;
120120 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+ }
122124
123125 this . _createWrapper ( ) ;
124126
@@ -433,10 +435,11 @@ $.widget( "ui.dialog", {
433435 } ,
434436
435437 _title : function ( title ) {
436- if ( ! this . options . title ) {
438+ if ( this . options . title ) {
439+ title . text ( this . options . title ) ;
440+ } else {
437441 title . html ( " " ) ;
438442 }
439- title . text ( this . options . title ) ;
440443 } ,
441444
442445 _createButtonPane : function ( ) {
You can’t perform that action at this time.
0 commit comments