diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-01-05 03:41:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 03:41:51 +0300 |
commit | da9c6159702a228c1d50b65b87dd416730c092b0 (patch) | |
tree | 668f98c9bdba618df86556fa0afc014a8591e244 /plugins/CoreHome/javascripts | |
parent | 6f60a5ebfa306e66055cf76d0f98d1b5f2f127be (diff) |
Adds missing report documentations (#16878)
* Fix report documentation not shown when switching between related reports
* Adds report documentation for DevicesDetection reports
* Adds some more report documentations
* Adds documentation to Event reports
* Adds documentation to Content reports
* Adds documentation to VisitorFrequency report
* Adds documentation to Goals reports
* Adds documentation to VisitsSummary report
* fixes & test updates
* fix typo
Co-authored-by: Lukas Winkler <git@lw1.at>
* small tweaks to some docs
* revising some of the report documentation
* fix translation file
* updates expected test files
Co-authored-by: Lukas Winkler <git@lw1.at>
Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
Diffstat (limited to 'plugins/CoreHome/javascripts')
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js index a39014d4c6..db7f781bf3 100644 --- a/plugins/CoreHome/javascripts/dataTable.js +++ b/plugins/CoreHome/javascripts/dataTable.js @@ -1692,7 +1692,18 @@ $.extend(DataTable.prototype, UIControl.prototype, { if (scope) { var $doc = domElem.find('.reportDocumentation'); if ($doc.length) { + // hackish solution to get binded html of p tag within the help node + // at this point the ng-bind-html is not yet converted into html when report is not + // initially loaded. Using $compile doesn't work. So get and set it manually + var helpParagraph = $('p[ng-bind-html]', $doc); + + if (helpParagraph.length) { + var $parse = angular.element(document).injector().get('$parse'); + helpParagraph.html($parse(helpParagraph.attr('ng-bind-html'))); + } + scope.inlineHelp = $.trim($doc.html()); + } scope.featureName = $.trim(relatedReportName); setTimeout(function (){ |