$.widget("ui.dialog", {
init: function() {
+ this.options.title = this.options.title || this.element.attr('title');
+
var self = this,
options = this.options,
resizeHandles = typeof options.resizable == 'string'
height: '100%'
}),
- title = options.title || uiDialogContent.attr('title') || ' ',
+ title = options.title || ' ',
uiDialogTitlebar = (this.uiDialogTitlebar =
$('<div class="ui-dialog-titlebar"/>'))
.append('<span class="ui-dialog-title">' + title + '</span>')