Merge pull request #13196 from owncloud/js-personal-no-password
Fix js error in personal settings if there is no password field
This commit is contained in:
commit
cd79b0279a
|
@ -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