Fix js error in personal settings if there is no password field

remotes/origin/fix-10825
Robin Appelman 10 years ago
parent 631d6571fd
commit 22ab56a592
  1. 4
      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

Loading…
Cancel
Save