Dialog: Don't override title option on init.

This commit is contained in:
Scott González
2009-01-20 21:57:00 +00:00
parent d3303c15b3
commit a034903233

View File

@@ -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
},