mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Removed else statement preventing Success message from displaying causing bug #1875
Signed-off-by: Henry Mohn <hmohniii@gmail.com>
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user