Another fix for IE11
This commit is contained in:
parent
6ea5dff1ff
commit
205fdb3cc6
|
|
@ -608,7 +608,7 @@ var tarteaucitron = {
|
||||||
tac_group_style.innerHTML = '.tarteaucitronTitle{display:none}';
|
tac_group_style.innerHTML = '.tarteaucitronTitle{display:none}';
|
||||||
document.head.appendChild(tac_group_style);
|
document.head.appendChild(tac_group_style);
|
||||||
var cats = document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]')
|
var cats = document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]')
|
||||||
cats.forEach(function(item) {
|
Array.prototype.forEach.call(cats, function(item) {
|
||||||
var cat = item.getAttribute('id').replace(/^(tarteaucitronServicesTitle_)/, "");
|
var cat = item.getAttribute('id').replace(/^(tarteaucitronServicesTitle_)/, "");
|
||||||
if (cat !== "mandatory") {
|
if (cat !== "mandatory") {
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
@ -1081,7 +1081,7 @@ var tarteaucitron = {
|
||||||
|
|
||||||
// groups
|
// groups
|
||||||
var cats = document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]')
|
var cats = document.querySelectorAll('[id^="tarteaucitronServicesTitle_"]')
|
||||||
cats.forEach(function(item) {
|
Array.prototype.forEach.call(cats, function(item) {
|
||||||
var cat = item.getAttribute('id').replace(/^(tarteaucitronServicesTitle_)/, ""),
|
var cat = item.getAttribute('id').replace(/^(tarteaucitronServicesTitle_)/, ""),
|
||||||
total = document.getElementById("tarteaucitronServices_"+cat).childElementCount;
|
total = document.getElementById("tarteaucitronServices_"+cat).childElementCount;
|
||||||
var doc = document.getElementById("tarteaucitronServices_"+cat),
|
var doc = document.getElementById("tarteaucitronServices_"+cat),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue