diff -up build/pkgs/sagenb/src/sagenb-0.10.8.2/sagenb/data/jqueryui/development-bundle/ui/jquery.ui.dialog.js.orig build/pkgs/sagenb/src/sagenb-0.10.8.2/sagenb/data/jqueryui/development-bundle/ui/jquery.ui.dialog.js --- build/pkgs/sagenb/src/sagenb-0.10.8.2/sagenb/data/jqueryui/development-bundle/ui/jquery.ui.dialog.js.orig 2014-12-06 15:49:57.183458112 -0200 +++ build/pkgs/sagenb/src/sagenb-0.10.8.2/sagenb/data/jqueryui/development-bundle/ui/jquery.ui.dialog.js 2014-12-06 15:50:34.399459537 -0200 @@ -85,7 +85,6 @@ $.widget("ui.dialog", { var self = this, options = self.options, - title = options.title || ' ', titleId = $.ui.dialog.getTitleId(self.element), uiDialog = (self.uiDialog = $('
')) @@ -167,8 +166,8 @@ $.widget("ui.dialog", { uiDialogTitle = $('') .addClass('ui-dialog-title') .attr('id', titleId) - .html(title) .prependTo(uiDialogTitlebar); + this._title( uiDialogTitle ); //handling of deprecated beforeclose (vs beforeClose) option //Ticket #4669 http://dev.jqueryui.com/ticket/4669 @@ -349,6 +348,13 @@ $.widget("ui.dialog", { return self; }, + _title: function( title ) { + if ( !this.options.title ) { + title.html( " " ); + } + title.text( this.options.title ); + }, + _createButtons: function(buttons) { var self = this, hasButtons = false, @@ -618,8 +624,7 @@ $.widget("ui.dialog", { } break; case "title": - // convert whatever was passed in o a string, for html() to not throw up - $(".ui-dialog-title", self.uiDialogTitlebar).html("" + (value || ' ')); + this._title( $( ".ui-dialog-title", this.uiDialogTitlebar ) ); break; }