Projet

Général

Profil

0001-toodego-remove-useless-overloading-of-authentic2-dis.patch

Benjamin Dauvergne, 06 janvier 2023 16:46

Télécharger (1,5 ko)

Voir les différences:

Subject: [PATCH] toodego: remove useless overloading of
 authentic2/display_message_and_continue.html (#72519)

 .../display_message_and_continue.html         | 20 -------------------
 1 file changed, 20 deletions(-)
 delete mode 100644 templates/variants/toodego/authentic2/display_message_and_continue.html
templates/variants/toodego/authentic2/display_message_and_continue.html
1
{% extends "authentic2/base.html" %}
2
{% load i18n %}
3

  
4
{% block content %}
5
  <div class="a2-continue" id="a2-continue-container" style="display: none">
6
    <a id="a2-continue" href="{{ url }}" style="display: none">{% trans "Continue" %}</a>
7
  </div>
8
  {% if only_info %}
9
    <script>
10
      if (document.getElementById('messages').innerHTML.indexOf("Vous avez été déconnecté") != -1) {
11
        document.getElementById('a2-continue').click();
12
      } else {
13
        document.getElementById('a2-continue-container').style.display = 'block';
14
        window.setTimeout(function () {
15
          document.getElementById('a2-continue').click();
16
        }, 3000);
17
      }
18
    </script>
19
  {% endif %}
20
{% endblock %}
21
-