Browse Source

Show the small alert if no services #616

Amauri CHAMPEAUX 4 năm trước cách đây
mục cha
commit
bc324cd537
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      tarteaucitron.js

+ 5 - 1
tarteaucitron.js

@@ -531,7 +531,11 @@ var tarteaucitron = {
                                 tarteaucitron.addService(tarteaucitron.job[index]);
                             }
                         } else {
-                            tarteaucitron.job = []
+                            tarteaucitron.job = [];
+                        }
+
+                        if (tarteaucitron.job.length == 0) {
+                            tarteaucitron.userInterface.closeAlert();
                         }
 
                         tarteaucitron.isAjax = true;