Use .text instead of .html

Makes some static source code analyzers happier.
This commit is contained in:
Lukas Reschke 2015-11-30 23:49:27 +01:00
parent b0491bf930
commit 3ea654d2d4
1 changed files with 3 additions and 3 deletions

View File

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