From 8ab19f209a8effbbd5ee4d1cba2a49ca8e6672b6 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Fri, 21 Nov 2008 04:17:19 +0000 Subject: dialog: formatting changes --- ui/ui.dialog.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') 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); }, -- cgit v1.2.3