personnes: emptying email and password fields on user access manage page, to

avoid confusing user with browser stored data.

Closes #5452
This commit is contained in:
Serghei Mihai 2014-09-17 23:50:22 +02:00
parent 9e8be8ad51
commit 563749730f
2 changed files with 13 additions and 0 deletions

View File

@ -1,4 +1,10 @@
{% extends "personnes/simple-form.html" %}
{% load static %}
{% block extrascripts %}
<script src="{% static "js/access.js" %}"></script>
{{ block.super }}
{% endblock %}
{% block appbar %}
<h2>Modifier l'accès {{ object }}</h2>

View File

@ -0,0 +1,7 @@
(function($){
$(function() {
$.each(['email', 'password1', 'password2'], function(i, element) {
$('form input[name=' + element + ']').val('');
})
})
})(window.jQuery)