diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2021-01-20 10:49:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 10:49:46 +0300 |
commit | f538b0b5ece37aaf07b71b3869b6a752b0388e68 (patch) | |
tree | 134a223fe071c628e4d3ff28dfb0bff363f67df0 /plugins/Tour | |
parent | f5057ca78105400e60d92fd912fc36569af36765 (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.twig | 2 |
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') }}); } }); |