File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ $.widget( "ui.dialog", {
81
81
resizable : true ,
82
82
show : null ,
83
83
title : null ,
84
- uiDialogTitleTagName : "<span>" ,
84
+ uiDialogTitleHeadingLevel : 0 ,
85
85
width : 300 ,
86
86
87
87
// Callbacks
@@ -438,8 +438,12 @@ $.widget( "ui.dialog", {
438
438
}
439
439
} ) ;
440
440
441
- uiDialogTitle = $ ( this . options . uiDialogTitleTagName )
442
- . uniqueId ( ) . prependTo ( this . uiDialogTitlebar ) ;
441
+ var uiDialogHeadingLevel = Number . isInteger ( this . options . uiDialogTitleHeadingLevel )
442
+ && this . options . uiDialogTitleHeadingLevel > 0
443
+ && this . options . uiDialogTitleHeadingLevel <= 6
444
+ ? "h" + this . options . uiDialogTitleHeadingLevel : "span" ;
445
+
446
+ uiDialogTitle = $ ( "<" + uiDialogHeadingLevel + ">" ) . uniqueId ( ) . prependTo ( this . uiDialogTitlebar ) ;
443
447
this . _addClass ( uiDialogTitle , "ui-dialog-title" ) ;
444
448
this . _title ( uiDialogTitle ) ;
445
449
You can’t perform that action at this time.
0 commit comments