diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 42a06daa5..6cae66d87 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -29,6 +29,8 @@ var setDataSwitch = { $.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' @@ -48,7 +50,7 @@ $.widget("ui.dialog", { height: '100%' }), - title = options.title || uiDialogContent.attr('title') || ' ', + title = options.title || ' ', uiDialogTitlebar = (this.uiDialogTitlebar = $('
')) .append('' + title + '')