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

This commit is contained in:
Robin Appelman 2015-01-09 15:38:39 +01:00
parent 631d6571fd
commit 22ab56a592
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ function avatarResponseHandler (data) {
}
$(document).ready(function () {
if($('#pass2').length) {
$('#pass2').showPassword().keyup();
}
$("#passwordbutton").click(function () {
if ($('#pass1').val() !== '' && $('#pass2').val() !== '') {
// Serialize the data