|
@@ -425,6 +425,9 @@ var tarteaucitron = {
|
|
body.appendChild(div, body);
|
|
body.appendChild(div, body);
|
|
div.innerHTML = html;
|
|
div.innerHTML = html;
|
|
|
|
|
|
|
|
+ var tacRootAvailableEvent = new Event("tac.root_available");
|
|
|
|
+ window.dispatchEvent(tacRootAvailableEvent);
|
|
|
|
+
|
|
if (tarteaucitron.job !== undefined) {
|
|
if (tarteaucitron.job !== undefined) {
|
|
tarteaucitron.job = tarteaucitron.cleanArray(tarteaucitron.job);
|
|
tarteaucitron.job = tarteaucitron.cleanArray(tarteaucitron.job);
|
|
for (index = 0; index < tarteaucitron.job.length; index += 1) {
|
|
for (index = 0; index < tarteaucitron.job.length; index += 1) {
|
|
@@ -791,6 +794,9 @@ var tarteaucitron = {
|
|
document.getElementsByTagName('body')[0].classList.add('modal-open');
|
|
document.getElementsByTagName('body')[0].classList.add('modal-open');
|
|
tarteaucitron.userInterface.focusTrap();
|
|
tarteaucitron.userInterface.focusTrap();
|
|
tarteaucitron.userInterface.jsSizing('main');
|
|
tarteaucitron.userInterface.jsSizing('main');
|
|
|
|
+
|
|
|
|
+ var tacOpenPanelEvent = new Event("tac.open_panel");
|
|
|
|
+ window.dispatchEvent(tacOpenPanelEvent);
|
|
},
|
|
},
|
|
"closePanel": function () {
|
|
"closePanel": function () {
|
|
"use strict";
|
|
"use strict";
|
|
@@ -816,6 +822,8 @@ var tarteaucitron = {
|
|
//document.getElementById('contentWrapper').setAttribute("aria-hidden", "false");
|
|
//document.getElementById('contentWrapper').setAttribute("aria-hidden", "false");
|
|
document.getElementsByTagName('body')[0].classList.remove('modal-open');
|
|
document.getElementsByTagName('body')[0].classList.remove('modal-open');
|
|
|
|
|
|
|
|
+ var tacClosePanelEvent = new Event("tac.close_panel");
|
|
|
|
+ window.dispatchEvent(tacClosePanelEvent);
|
|
},
|
|
},
|
|
"focusTrap": function() {
|
|
"focusTrap": function() {
|
|
"use strict";
|
|
"use strict";
|
|
@@ -863,6 +871,9 @@ var tarteaucitron = {
|
|
tarteaucitron.userInterface.css(c + 'Percentage', 'display', 'block');
|
|
tarteaucitron.userInterface.css(c + 'Percentage', 'display', 'block');
|
|
tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'none');
|
|
tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'none');
|
|
tarteaucitron.userInterface.css(c + 'AlertBig', 'display', 'block');
|
|
tarteaucitron.userInterface.css(c + 'AlertBig', 'display', 'block');
|
|
|
|
+
|
|
|
|
+ var tacOpenAlertEvent = new Event("tac.open_alert");
|
|
|
|
+ window.dispatchEvent(tacOpenAlertEvent);
|
|
},
|
|
},
|
|
"closeAlert": function () {
|
|
"closeAlert": function () {
|
|
"use strict";
|
|
"use strict";
|
|
@@ -871,6 +882,9 @@ var tarteaucitron = {
|
|
tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'block');
|
|
tarteaucitron.userInterface.css(c + 'AlertSmall', 'display', 'block');
|
|
tarteaucitron.userInterface.css(c + 'AlertBig', 'display', 'none');
|
|
tarteaucitron.userInterface.css(c + 'AlertBig', 'display', 'none');
|
|
tarteaucitron.userInterface.jsSizing('box');
|
|
tarteaucitron.userInterface.jsSizing('box');
|
|
|
|
+
|
|
|
|
+ var tacCloseAlertEvent = new Event("tac.close_alert");
|
|
|
|
+ window.dispatchEvent(tacCloseAlertEvent);
|
|
},
|
|
},
|
|
"toggleCookiesList": function () {
|
|
"toggleCookiesList": function () {
|
|
"use strict";
|
|
"use strict";
|