New option: prevent the panel to open auto
This commit is contained in:
parent
05aa187f0a
commit
81d00657ae
|
|
@ -6,6 +6,7 @@ var scripts = document.getElementsByTagName('script'),
|
||||||
cdn = path.split('/').slice(0, -1).join('/') + '/';
|
cdn = path.split('/').slice(0, -1).join('/') + '/';
|
||||||
|
|
||||||
var tarteaucitron = {
|
var tarteaucitron = {
|
||||||
|
"autoOpen": false, // auto open the panel with #tarteaucitron hash ?
|
||||||
"cdn": cdn,
|
"cdn": cdn,
|
||||||
"user": {},
|
"user": {},
|
||||||
"lang": {},
|
"lang": {},
|
||||||
|
|
@ -200,7 +201,7 @@ var tarteaucitron = {
|
||||||
} else {
|
} else {
|
||||||
tarteaucitron.userInterface.closeAlert();
|
tarteaucitron.userInterface.closeAlert();
|
||||||
}
|
}
|
||||||
if (document.location.hash === '#tarteaucitron') {
|
if (document.location.hash === '#tarteaucitron' && tarteaucitron.autoOpen === true) {
|
||||||
tarteaucitron.userInterface.openPanel();
|
tarteaucitron.userInterface.openPanel();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue