Skip to content

Commit

Permalink
Adds javascript to return to a page a few seconds after successfully …
Browse files Browse the repository at this point in the history
…logging out. Commit ready to merge. Fixes ticket #1461.

 - Legacy-Id: 8239
  • Loading branch information
rjsparks committed Aug 4, 2014
1 parent c6e22bc commit b927da7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ietf/templates/registration/logged_out.html
Expand Up @@ -12,3 +12,14 @@ <h1>You have been signed out</h1>
</div>
</div>
{% endblock %}

{% if request.META.HTTP_REFERER %}
{% block scripts %}
$(document).ready( function() {
$("#login-back a").text('You will be returned to the previous page in 5 seconds');
setTimeout(function() {
window.location.replace("{{request.META.HTTP_REFERER}}") ;
}, 5000);
});
{% endblock %}
{% endif %}

0 comments on commit b927da7

Please sign in to comment.