From 14dc36efe6326d1f626a41c4295f570a729d57ae Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 7 Oct 2015 15:58:37 +0200 Subject: [PATCH] Properly hide strengthify after password change --- core/vendor/strengthify/jquery.strengthify.js | 2 +- settings/js/personal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vendor/strengthify/jquery.strengthify.js b/core/vendor/strengthify/jquery.strengthify.js index 21f5fa8295..4fcc4d7c7c 100644 --- a/core/vendor/strengthify/jquery.strengthify.js +++ b/core/vendor/strengthify/jquery.strengthify.js @@ -58,7 +58,7 @@ dataType: 'script', url: options.zxcvbn }).done(function() { - me.bind('keyup input', function() { + me.bind('keyup input change', function() { var password = $(this).val(), // hide strengthigy if no input is provided opacity = (password === '') ? 0 : 1, diff --git a/settings/js/personal.js b/settings/js/personal.js index 33746d22ac..eef669eeb7 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -188,7 +188,7 @@ $(document).ready(function () { $.post(OC.generateUrl('/settings/personal/changepassword'), post, function (data) { if (data.status === "success") { $('#pass1').val(''); - $('#pass2').val(''); + $('#pass2').val('').change(); // Hide a possible errormsg and show successmsg $('#password-changed').removeClass('hidden').addClass('inlineblock'); $('#password-error').removeClass('inlineblock').addClass('hidden');