Ver Fonte

Reload only if the service was launched

Amauri CHAMPEAUX há 10 anos atrás
pai
commit
ff0c52df50
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      tarteaucitron.js

+ 2 - 2
tarteaucitron.js

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