Fix js error in personal settings if there is no password field
This commit is contained in:
parent
631d6571fd
commit
22ab56a592
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue