aboutsummaryrefslogtreecommitdiffstats
path: root/client/templates
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-07-27 16:16:25 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-07-27 16:16:26 +0200
commit02667f162ecaa344c0fbee54fe0ef11bdee9cb2a (patch)
tree45a52f3928ffa2315dd4f2462df9e3901797300b /client/templates
parentverify attachments upload (diff)
downloadscout-subs-02667f162ecaa344c0fbee54fe0ef11bdee9cb2a.tar.gz
scout-subs-02667f162ecaa344c0fbee54fe0ef11bdee9cb2a.zip
new uc fix document lists
Diffstat (limited to 'client/templates')
-rw-r--r--client/templates/client/index.html6
1 files changed, 4 insertions, 2 deletions
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')