Selaa lähdekoodia

Update the cookie number in the control panel when a cookie is deleted

Amauri CHAMPEAUX 10 vuotta sitten
vanhempi
commit
0b89364c41
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      tarteaucitron.js

+ 4 - 0
tarteaucitron.js

@@ -981,6 +981,10 @@ var tarteaucitron = {
             if (document.getElementById('tarteaucitronCookiesNumberBis') !== null) {
                 document.getElementById('tarteaucitronCookiesNumberBis').innerHTML = nb + ' cookie' + s;
             }
+            
+            for (i = 0; i < tarteaucitron.job.length; i += 1) {
+                tarteaucitron.cookie.checkCount(tarteaucitron.job[i]);
+            }
         }
     },
     "getLanguage": function () {