summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/js/personal.js4
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