From 3ea654d2d4bb062faac00accd1c53adc4ddd270d Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Mon, 30 Nov 2015 23:49:27 +0100 Subject: Use .text instead of .html Makes some static source code analyzers happier. --- settings/js/personal.js | 6 +++--- 1 file 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; -- cgit v1.2.3 e30/sabre-dav-itip-broker'>3rdparty/stable30/sabre-dav-itip-broker Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
blob: 40fa92d1e8cec40ba36578048309d847bac2f893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48