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", {
107107 index : this . element . parent ( ) . children ( ) . index ( this . element )
108108 } ;
109109 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+ }
111113
112114 this . _createWrapper ( ) ;
113115
@@ -422,10 +424,11 @@ return $.widget( "ui.dialog", {
422424 } ,
423425
424426 _title : function ( title ) {
425- if ( ! this . options . title ) {
427+ if ( this . options . title ) {
428+ title . text ( this . options . title ) ;
429+ } else {
426430 title . html ( " " ) ;
427431 }
428- title . text ( this . options . title ) ;
429432 } ,
430433
431434 _createButtonPane : function ( ) {
You can’t perform that action at this time.
0 commit comments