Removed else statement preventing Success message from displaying causing bug #1875
Signed-off-by: Henry Mohn <hmohniii@gmail.com>
This commit is contained in:
parent
f42d5b6e56
commit
fe544d807a
|
@ -235,19 +235,18 @@ $(document).ready(function () {
|
||||||
$(".personal-show-label").show();
|
$(".personal-show-label").show();
|
||||||
$('#pass1').val('');
|
$('#pass1').val('');
|
||||||
$('#pass2').val('').change();
|
$('#pass2').val('').change();
|
||||||
|
}
|
||||||
|
if (typeof(data.data) !== "undefined") {
|
||||||
|
OC.msg.finishedSaving('#password-error-msg', data);
|
||||||
} else {
|
} else {
|
||||||
if (typeof(data.data) !== "undefined") {
|
OC.msg.finishedSaving('#password-error-msg',
|
||||||
OC.msg.finishedSaving('#password-error-msg', data);
|
{
|
||||||
} else {
|
'status' : 'error',
|
||||||
OC.msg.finishedSaving('#password-error-msg',
|
'data' : {
|
||||||
{
|
'message' : t('core', 'Unable to change password')
|
||||||
'status' : 'error',
|
|
||||||
'data' : {
|
|
||||||
'message' : t('core', 'Unable to change password')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
}
|
);
|
||||||
}
|
}
|
||||||
$(".password-loading").remove();
|
$(".password-loading").remove();
|
||||||
$("#passwordbutton").removeAttr('disabled');
|
$("#passwordbutton").removeAttr('disabled');
|
||||||
|
|
Loading…
Reference in New Issue