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:
authorThomas Steur <tsteur@users.noreply.github.com>2021-01-20 10:49:46 +0300
committerGitHub <noreply@github.com>2021-01-20 10:49:46 +0300
commitf538b0b5ece37aaf07b71b3869b6a752b0388e68 (patch)
tree134a223fe071c628e4d3ff28dfb0bff363f67df0 /plugins/Tour
parentf5057ca78105400e60d92fd912fc36569af36765 (diff)
Improve compatibility with jQuery 3 (#17121)
Which is used in WordPress 5.6+ Also adjusted few premium features with similar issue. refs https://github.com/matomo-org/wp-matomo/issues/414
Diffstat (limited to 'plugins/Tour')
-rw-r--r--plugins/Tour/templates/engagement.twig2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Tour/templates/engagement.twig b/plugins/Tour/templates/engagement.twig
index 405e02c0db..e1151f2617 100644
--- a/plugins/Tour/templates/engagement.twig
+++ b/plugins/Tour/templates/engagement.twig
@@ -50,7 +50,7 @@
<p class="tourSuperUserNote">{{ 'Tour_OnlyVisibleToSuperUser'|translate('<a href="https://matomo.org/faq/general/faq_35/" target="_blank" rel="noreferrer noopener">', '</a>')|raw }}</p>
<script>
jQuery(window).off('focus.tourEngagement').on('focus.tourEngagement', function () {
- if (jQuery('#widgetTourgetEngagement').size()) {
+ if (jQuery('#widgetTourgetEngagement').length) {
tourEngagement.goToPage({{ currentPage|e('js') }});
}
});