diff options
author | sgiehl <stefan@piwik.org> | 2013-04-02 00:17:31 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-04-02 00:17:31 +0400 |
commit | 089b7df0d9ddeaa4c335380cdefdcb2231a51cb4 (patch) | |
tree | 6ac6b3743b1883e3ab5b966a92173104544ea6ff | |
parent | 87d16aeb041d45f4f8144e9f1984d02120dd1095 (diff) |
refs #3813 allow html for popover dialog title
-rw-r--r-- | plugins/CoreHome/templates/popover.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/popover.js b/plugins/CoreHome/templates/popover.js index d91059ec21..c5d5d039d5 100644 --- a/plugins/CoreHome/templates/popover.js +++ b/plugins/CoreHome/templates/popover.js @@ -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; }; @@ -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 */ |