Reload only if the service was launched

This commit is contained in:
Amauri CHAMPEAUX 2015-03-10 02:38:29 +01:00
parent 919d8ec9a2
commit ff0c52df50
1 changed files with 2 additions and 2 deletions

View File

@ -449,7 +449,7 @@ var tarteaucitron = {
service = s[tarteaucitron.job[index]];
key = service.key;
if (tarteaucitron.state[key] !== status) {
if (status === false) {
if (status === false && tarteaucitron.launch[key] === true) {
tarteaucitron.reloadThePage = true;
}
if (tarteaucitron.launch[key] !== true && status === true) {
@ -471,7 +471,7 @@ var tarteaucitron = {
return;
}
if (status === false) {
if (status === false && tarteaucitron.launch[key] === true) {
tarteaucitron.reloadThePage = true;
}