Skip to content

Commit 14dc459

Browse files
committed
Add option to set html tag for dialog modal title
1 parent cd41c45 commit 14dc459

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/widgets/dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ $.widget( "ui.dialog", {
8181
resizable: true,
8282
show: null,
8383
title: null,
84+
uiDialogTitleTagName: "span",
8485
width: 300,
8586

8687
// Callbacks
@@ -437,7 +438,7 @@ $.widget( "ui.dialog", {
437438
}
438439
} );
439440

440-
uiDialogTitle = $( "<span>" ).uniqueId().prependTo( this.uiDialogTitlebar );
441+
uiDialogTitle = $( "<" + this.options.uiDialogTitleTagName + ">" ).uniqueId().prependTo( this.uiDialogTitlebar );
441442
this._addClass( uiDialogTitle, "ui-dialog-title" );
442443
this._title( uiDialogTitle );
443444

0 commit comments

Comments
 (0)