mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-02-05 01:15:06 -05:00
Dialog: Don't override title option on init.
This commit is contained in:
@@ -31,12 +31,11 @@ $.widget("ui.dialog", {
|
||||
|
||||
_init: function() {
|
||||
this.originalTitle = this.element.attr('title');
|
||||
this.options.title = this.options.title || this.originalTitle;
|
||||
|
||||
var self = this,
|
||||
options = this.options,
|
||||
|
||||
title = options.title || ' ',
|
||||
title = options.title || this.originalTitle || ' ',
|
||||
titleId = $.ui.dialog.getTitleId(this.element),
|
||||
|
||||
uiDialog = (this.uiDialog = $('<div/>'))
|
||||
@@ -487,6 +486,7 @@ $.extend($.ui.dialog, {
|
||||
position: 'center',
|
||||
resizable: true,
|
||||
stack: true,
|
||||
title: '',
|
||||
width: 300,
|
||||
zIndex: 1000
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user