Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2013-04-02 00:17:31 +0400
committersgiehl <stefan@piwik.org>2013-04-02 00:17:31 +0400
commit089b7df0d9ddeaa4c335380cdefdcb2231a51cb4 (patch)
tree6ac6b3743b1883e3ab5b966a92173104544ea6ff
parent87d16aeb041d45f4f8144e9f1984d02120dd1095 (diff)
refs #3813 allow html for popover dialog title
-rw-r--r--plugins/CoreHome/templates/popover.js7
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 */