Skip to content
Permalink
Browse files

Dialog: Fixed #3259: Remove title attribute from dialog elements on i…

…nit.
  • Loading branch information
scottgonzalez committed Sep 3, 2008
1 parent ccdb99e commit d6a247afffd6169b7ef58f03a67df9dcf5894c30
Showing with 5 additions and 1 deletion.
  1. +5 −1 ui/ui.dialog.js
@@ -29,7 +29,8 @@ var setDataSwitch = {

$.widget("ui.dialog", {
_init: function() {
this.options.title = this.options.title || this.element.attr('title');
this.originalTitle = this.element.attr('title');
this.options.title = this.options.title || this.originalTitle;

var self = this,
options = this.options,
@@ -38,6 +39,7 @@ $.widget("ui.dialog", {
: 'n,e,s,w,se,sw,ne,nw',

uiDialogContent = this.element
.removeAttr('title')
.addClass('ui-dialog-content')
.wrap('<div/>')
.wrap('<div/>'),
@@ -309,6 +311,8 @@ $.widget("ui.dialog", {
.removeClass('ui-dialog-content')
.hide().appendTo('body');
this.uiDialog.remove();

(this.originalTitle && this.element.attr('title', this.originalTitle));
},

_createButtons: function(buttons) {

0 comments on commit d6a247a

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