Skip to content
Permalink
Browse files

Dialog: Don't override title option on init.

  • Loading branch information...
scottgonzalez committed Jan 20, 2009
1 parent d3303c1 commit a03490323322ac5d3365052d412b852413cf444f
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.dialog.js
@@ -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 || ' ',
title = options.title || this.originalTitle || ' ',
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
},

0 comments on commit a034903

Please sign in to comment.
You can’t perform that action at this time.