diff options
Diffstat (limited to 'client/templates')
-rw-r--r-- | client/templates/client/index.html | 6 |
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') |