diff --git a/settings/js/personal.js b/settings/js/personal.js index fba4af1fd4..0cf0cd81a7 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -168,7 +168,9 @@ function avatarResponseHandler (data) { } $(document).ready(function () { - $('#pass2').showPassword().keyup(); + if($('#pass2').length) { + $('#pass2').showPassword().keyup(); + } $("#passwordbutton").click(function () { if ($('#pass1').val() !== '' && $('#pass2').val() !== '') { // Serialize the data