diff options
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r-- | ui/ui.dialog.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 = $('<div class="ui-dialog-titlebar"/>')) .append('<span class="ui-dialog-title">' + title + '</span>') |