From 02667f162ecaa344c0fbee54fe0ef11bdee9cb2a Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Thu, 27 Jul 2023 16:16:25 +0200 Subject: new uc fix document lists --- client/templates/client/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/templates') diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 8dd3dde..2690703 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -468,9 +468,9 @@ $(document).ready(function(){ {% if user.is_staff or perms.client.approved %} $('.collapsible').collapsible(); - $('.tap-target').tapTarget(); $('.modal').modal(); - {% if docs|length == 0 %} + {% if docs|length == 0 and not all_invalid %} + $('.tap-target').tapTarget(); $('.tap-target').tapTarget('open'); {% endif %} var params = {}; @@ -489,11 +489,13 @@ $(document).ready(function(){ }); }); {% if user.is_staff or perms.client.approved %} + {% if not all_invalid %} $('*').click(function(event) { if (this === event.target) { $('.tap-target').tapTarget('close'); } }); + {% endif %} function send(id) { var form = document.getElementById('form') var action = document.getElementById('action') -- cgit v1.2.1