Skip to content

Commit

Permalink
refs #3813 allow html for popover dialog title
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Apr 1, 2013
1 parent 87d16ae commit 089b7df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/CoreHome/templates/popover.js
Expand Up @@ -47,6 +47,11 @@ var Piwik_Popover = (function () {
}
});

// override the undocumented _title function to ensure that the title attribute is not escaped (according to jQueryUI bug #6016)
container.data( "uiDialog" )._title = function(title) {
title.html( this.options.title );
};

isOpen = true;
};

Expand Down Expand Up @@ -124,7 +129,7 @@ var Piwik_Popover = (function () {

/** Set the title of the popover */
setTitle: function (titleHtml) {
container.dialog({title: titleHtml});
container.dialog('option', 'title', titleHtml);
},

/** Set inner HTML of the popover */
Expand Down

0 comments on commit 089b7df

Please sign in to comment.