瀏覽代碼

Fix 1ef432c

Amauri CHAMPEAUX 4 年之前
父節點
當前提交
c3f983e47b
共有 1 個文件被更改,包括 3 次插入4 次删除
  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";