[snowy] Clear the "change password" form using jquery



commit 4bcc44012d336044bec729b1bc0acb7e202a5f10
Author: Natan Yellin <aantny gmail com>
Date:   Wed Dec 15 18:12:38 2010 +0200

    Clear the "change password" form using jquery

 accounts/templates/accounts/preferences.html |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/accounts/templates/accounts/preferences.html b/accounts/templates/accounts/preferences.html
index 931ea9a..1a674a2 100644
--- a/accounts/templates/accounts/preferences.html
+++ b/accounts/templates/accounts/preferences.html
@@ -2,6 +2,16 @@
 
 {% load i18n %}
 
+{% block extra_head %}
+{{ block.super }}
+    <script type="text/javascript">
+        // clear the password form
+        $(document).ready(function() {
+            $('.input-form input[type="password"]').val("")
+        });
+    </script>
+{% endblock %}
+
 {% block content %}
 
 {% if messages %}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]