diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2022-03-08 00:22:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 00:22:25 +0300 |
commit | 7c80d543332f84c396c0be81df91f8d27f49f517 (patch) | |
tree | 259d99d3d28521c1eb642b067d055305591338ce /plugins/Morpheus | |
parent | 8188140d9daf90b2aec1bbd6ff76b2218c288ad0 (diff) |
[Vue] migrate goal page link directive and add event to replace use of angularjs in html ajax code (#18888)
* migrate goal-page-link
* make event more generic and use in compileAngularComponents()
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r-- | plugins/Morpheus/javascripts/piwikHelper.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js index 903a21fd1a..dfcdb12b84 100644 --- a/plugins/Morpheus/javascripts/piwikHelper.js +++ b/plugins/Morpheus/javascripts/piwikHelper.js @@ -248,9 +248,17 @@ window.piwikHelper = { } $compile($element)(scope); + + setTimeout(function () { + piwikHelper.processDynamicHtml($element); + }); }); }, + processDynamicHtml: function ($element) { + piwik.postEvent('Matomo.processDynamicHtml', $element); + }, + /** * Detection works currently only for directives defining an isolated scope. Functionality might need to be * extended if needed. Under circumstances you might call this method before calling compileAngularComponents() |