diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-01-09 15:38:39 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-01-09 15:38:39 +0100 |
commit | 22ab56a5925966e0115b0d6257158cafc22ec160 (patch) | |
tree | a295c52ee34e438647263ac14d2402f399d4c16e | |
parent | 631d6571fdb39c367406fba8c608c76c92b06e2a (diff) | |
download | nextcloud-server-22ab56a5925966e0115b0d6257158cafc22ec160.tar.gz nextcloud-server-22ab56a5925966e0115b0d6257158cafc22ec160.zip |
Fix js error in personal settings if there is no password field
-rw-r--r-- | settings/js/personal.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index fba4af1fd48..0cf0cd81a7b 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 |