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:
authordizzy <diosmosis@users.noreply.github.com>2022-03-08 00:22:25 +0300
committerGitHub <noreply@github.com>2022-03-08 00:22:25 +0300
commit7c80d543332f84c396c0be81df91f8d27f49f517 (patch)
tree259d99d3d28521c1eb642b067d055305591338ce /plugins/Morpheus
parent8188140d9daf90b2aec1bbd6ff76b2218c288ad0 (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.js8
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()