diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-08-31 10:31:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-31 10:31:07 +0300 |
commit | 3887d4fe346213e9114c2e2f4dd0ed5f29b2cd55 (patch) | |
tree | 3e191bd39f969b3df08eff6add5d4b0e0238fed2 /plugins/Dashboard | |
parent | 598c7e5af8b196df1ef0dc78c196a4e0968b26aa (diff) |
Ensure to properly escape widgetid attribute (#19685)
* Ensure to properly escape widgetid attribute
* correctly esacpe label in row evolution popover
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r-- | plugins/Dashboard/javascripts/dashboardObject.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dashboard/javascripts/dashboardObject.js b/plugins/Dashboard/javascripts/dashboardObject.js index de9455c372..95eabe0582 100644 --- a/plugins/Dashboard/javascripts/dashboardObject.js +++ b/plugins/Dashboard/javascripts/dashboardObject.js @@ -478,7 +478,7 @@ return; } - var $widgetContent = $('<div class="sortable" widgetId="' + uniqueId + '"></div>'); + var $widgetContent = $('<div class="sortable"></div>').attr('widgetId', uniqueId); if (addWidgetOnTop) { $('> .col:nth-child(' + columnNumber + ')', dashboardElement).prepend($widgetContent); |