settings: Hide password change controls behind a link

(imported from commit 6d0f3861ef97f45231d388378f429974e876ddbe)
This commit is contained in:
Keegan McAllister
2013-04-08 14:03:21 -04:00
parent 525c0bcd3f
commit f399e29fe9
3 changed files with 44 additions and 24 deletions

View File

@@ -756,6 +756,12 @@ $(function () {
// have it (and instead to scroll to a weird place.)
$('#gear-menu a[href="#subscriptions"]').on('shown', subs.setup_page);
$('#pw_change_link').on('click', function (e) {
e.preventDefault();
$('#pw_change_link').hide();
$('#pw_change_controls').show();
});
$('#new_password').on('change keyup', function () {
var pw_quality = password_quality($('#new_password').val());
if (pw_quality !== undefined)