From b111f79ee0ef6b112a1cb872ad1fa1b0f62c5d0f Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT <hdlaurent@afi-sa.fr> Date: Wed, 14 Sep 2022 10:39:45 +0000 Subject: [PATCH] =?UTF-8?q?Adaptation=20page=20max=20Magasin=20de=20th?= =?UTF-8?q?=C3=A8mes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matomo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matomo.js b/matomo.js index f3b2f4c..2036f39 100644 --- a/matomo.js +++ b/matomo.js @@ -12,7 +12,7 @@ var result_count = 0; // compatibilité Magasin de thème if ( search_keywords && $('body').attr('data-template') && $('div.search_result') ) { result_count = $('li.result_count_results').text().match('[0-9]+')[0]; - search_page = $('li.result_pager span').html().match(' ([0-9]+) /')[1]; + search_page = $('li.result_pager input[name="page"]').attr('max'); tracksearch = true; } -- GitLab