assign error message to correct object

fix for  #17817
This commit is contained in:
michag86 2015-07-22 18:42:46 +02:00
parent f137f1a049
commit 3841bb1c07
1 changed files with 2 additions and 2 deletions

View File

@ -194,9 +194,9 @@ $(document).ready(function () {
$('#password-error').removeClass('inlineblock').addClass('hidden');
} else {
if (typeof(data.data) !== "undefined") {
$('#passworderror').html(data.data.message);
$('#password-error').html(data.data.message);
} else {
$('#passworderror').html(t('Unable to change password'));
$('#password-error').html(t('Unable to change password'));
}
// Hide a possible successmsg and show errormsg
$('#password-changed').removeClass('inlineblock').addClass('hidden');