0001-toodego-remove-useless-overloading-of-authentic2-dis.patch
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 |
- |