Amauri CHAMPEAUX %!s(int64=4) %!d(string=hai) anos
pai
achega
c3f983e47b
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      tarteaucitron.js

+ 3 - 4
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";