]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Don't override title option on init.
authorScott González <scott.gonzalez@gmail.com>
Tue, 20 Jan 2009 21:57:00 +0000 (21:57 +0000)
committerScott González <scott.gonzalez@gmail.com>
Tue, 20 Jan 2009 21:57:00 +0000 (21:57 +0000)
ui/ui.dialog.js

index 0489844f2c21120a5037486f7ba26cbcaedb2e98..69ca3205c7fbf8a016b7b3d83a0e414bb75e1f44 100644 (file)
@@ -31,12 +31,11 @@ $.widget("ui.dialog", {
 
        _init: function() {
                this.originalTitle = this.element.attr('title');
-               this.options.title = this.options.title || this.originalTitle;
 
                var self = this,
                        options = this.options,
 
-                       title = options.title || '&nbsp;',
+                       title = options.title || this.originalTitle || '&nbsp;',
                        titleId = $.ui.dialog.getTitleId(this.element),
 
                        uiDialog = (this.uiDialog = $('<div/>'))
@@ -487,6 +486,7 @@ $.extend($.ui.dialog, {
                position: 'center',
                resizable: true,
                stack: true,
+               title: '',
                width: 300,
                zIndex: 1000
        },