diff options
author | Henry Mohn <hmohniii@gmail.com> | 2016-11-04 19:45:46 +0000 |
---|---|---|
committer | Henry Mohn <hmohniii@gmail.com> | 2016-11-04 20:40:42 +0000 |
commit | fe544d807ad7d8ca40ff6e08e50aecd00a8e268a (patch) | |
tree | 83d4fc23c1979093febcb88e78c18bb813da1aa2 /settings/js | |
parent | f42d5b6e56d9f6fcab2074b60a4a3f4fe753420b (diff) | |
download | nextcloud-server-fe544d807ad7d8ca40ff6e08e50aecd00a8e268a.tar.gz nextcloud-server-fe544d807ad7d8ca40ff6e08e50aecd00a8e268a.zip |
Removed else statement preventing Success message from displaying causing bug #1875
Signed-off-by: Henry Mohn <hmohniii@gmail.com>
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/personal.js | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index d61a08794cc..3079cf27e06 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -235,19 +235,18 @@ $(document).ready(function () { $(".personal-show-label").show(); $('#pass1').val(''); $('#pass2').val('').change(); + } + if (typeof(data.data) !== "undefined") { + OC.msg.finishedSaving('#password-error-msg', data); } else { - if (typeof(data.data) !== "undefined") { - OC.msg.finishedSaving('#password-error-msg', data); - } else { - OC.msg.finishedSaving('#password-error-msg', - { - 'status' : 'error', - 'data' : { - 'message' : t('core', 'Unable to change password') - } + OC.msg.finishedSaving('#password-error-msg', + { + 'status' : 'error', + 'data' : { + 'message' : t('core', 'Unable to change password') } - ); - } + } + ); } $(".password-loading").remove(); $("#passwordbutton").removeAttr('disabled'); |