diff options
Diffstat (limited to 'plugins/CoreHome/templates/popover.js')
-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 */ |