From 0b89364c413d0acbfc080c46516b71ebe0e9a2a0 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 29 May 2015 16:10:37 +0200 Subject: [PATCH] Update the cookie number in the control panel when a cookie is deleted --- tarteaucitron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tarteaucitron.js b/tarteaucitron.js index d69a1af..8b2c713 100644 --- a/tarteaucitron.js +++ b/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 () {