Merge pull request #768 from lucmuller/master
Event loaded should be sent after js script is executed
This commit is contained in:
commit
6bfab4df0b
|
|
@ -1004,8 +1004,8 @@ var tarteaucitron = {
|
||||||
tarteaucitron.pro('!' + key + '=engage');
|
tarteaucitron.pro('!' + key + '=engage');
|
||||||
|
|
||||||
tarteaucitron.launch[key] = true;
|
tarteaucitron.launch[key] = true;
|
||||||
tarteaucitron.sendEvent(key + '_loaded');
|
|
||||||
if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
|
if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
|
||||||
|
tarteaucitron.sendEvent(key + '_loaded');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
|
var itemStatusElem = document.getElementById('tacCurrentStatus'+key);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue