Merge pull request #20850 from owncloud/use-text-instead-of-html

Use .text instead of .html
This commit is contained in:
Thomas Müller 2015-12-01 10:18:29 +01:00
commit f48ea593eb
1 changed files with 3 additions and 3 deletions

View File

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