diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-11-30 23:49:27 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-11-30 23:49:27 +0100 |
commit | 3ea654d2d4bb062faac00accd1c53adc4ddd270d (patch) | |
tree | d038d56479add445d888cbabadd923d3e7c2516a /settings | |
parent | b0491bf9305c5e3d01e2b9bb9393b42212dce589 (diff) | |
download | nextcloud-server-3ea654d2d4bb062faac00accd1c53adc4ddd270d.tar.gz nextcloud-server-3ea654d2d4bb062faac00accd1c53adc4ddd270d.zip |
Use .text instead of .html
Makes some static source code analyzers happier.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/personal.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index c9280d31353..8362adac2a6 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -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; |