From c3f983e47b703f20d582818c74751ce29d0495ef Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 29 Jan 2021 11:51:25 +0100 Subject: [PATCH] Fix 1ef432c --- tarteaucitron.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 79f057b..21f9f4f 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -631,6 +631,9 @@ var tarteaucitron = { }); tarteaucitron.addClickEventToId("tarteaucitronAllDenied2", function () { tarteaucitron.userInterface.respondAll(false); + if (tarteaucitron.reloadThePage === true) { + window.location.reload(); + } }); tarteaucitron.addClickEventToId("tarteaucitronCloseAlert", function () { tarteaucitron.userInterface.openPanel(); @@ -1139,10 +1142,6 @@ var tarteaucitron = { //end ie compatibility window.dispatchEvent(tacCloseAlertEvent); - - if (tarteaucitron.reloadThePage === true) { - window.location.reload(); - } }, "toggleCookiesList": function () { "use strict";