From bc324cd537c50cc7737ac8e78078eaac5b9c7c57 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 28 Apr 2021 14:36:04 +0200 Subject: [PATCH] Show the small alert if no services #616 --- tarteaucitron.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 5a3fad9..17627d2 100644 --- a/tarteaucitron.js +++ b/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;