Add a timer on the closeelement
This commit is contained in:
parent
4cf393cd40
commit
b091e07cc5
|
|
@ -595,12 +595,16 @@ var tarteaucitron = {
|
||||||
}, 1500);
|
}, 1500);
|
||||||
}
|
}
|
||||||
if(tarteaucitron.parameters.closePopup === true){
|
if(tarteaucitron.parameters.closePopup === true){
|
||||||
|
setTimeout(function() {
|
||||||
var closeElement = document.getElementById('tarteaucitronAlertBig'),
|
var closeElement = document.getElementById('tarteaucitronAlertBig'),
|
||||||
closeSpan = document.createElement('span');
|
closeSpan = document.createElement('span');
|
||||||
|
if (closeElement) {
|
||||||
closeSpan.textContent = 'X';
|
closeSpan.textContent = 'X';
|
||||||
closeSpan.setAttribute('id', "tarteaucitronCloseCross");
|
closeSpan.setAttribute('id', "tarteaucitronCloseCross");
|
||||||
closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
|
closeElement.insertBefore(closeSpan, closeElement.firstElementChild);
|
||||||
}
|
}
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if(tarteaucitron.parameters.groupServices === true) {
|
if(tarteaucitron.parameters.groupServices === true) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue