diff options
-rw-r--r-- | ui/ui.dialog.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 923fdf49c..83d144fc0 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -28,6 +28,7 @@ var setDataSwitch = { }; $.widget("ui.dialog", { + _init: function() { this.originalTitle = this.element.attr('title'); this.options.title = this.options.title || this.originalTitle; @@ -398,6 +399,7 @@ $.widget("ui.dialog", { content.height(container.height() - titlebar.outerHeight() - tbMargin); content.width(container.width() - lrMargin); } + }); $.extend($.ui.dialog, { @@ -424,6 +426,7 @@ $.extend($.ui.dialog, { getter: 'isOpen', uuid: 0, + getTitleId: function($el) { return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid); }, |