aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-27 12:20:07 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-27 12:21:20 +0200
commit9655b27f81ade5eddf5c615c4cc2c7d9beffd268 (patch)
treec859762f54bec2380067e4417ad8ed004d8cd557
parent13b3594ff301b9b9d798a3bae6792494b8ef7284 (diff)
downloadvolse-hubzilla-9655b27f81ade5eddf5c615c4cc2c7d9beffd268.tar.gz
volse-hubzilla-9655b27f81ade5eddf5c615c4cc2c7d9beffd268.tar.bz2
volse-hubzilla-9655b27f81ade5eddf5c615c4cc2c7d9beffd268.zip
fix js error with catalan language (unescaped strings)
-rwxr-xr-xview/tpl/jot-header.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl
index df67e9b2d..c84126d26 100755
--- a/view/tpl/jot-header.tpl
+++ b/view/tpl/jot-header.tpl
@@ -407,12 +407,12 @@ var activeCommentText = '';
if($('#jot-nocomment').val() > 0) {
$('#jot-nocomment').val(0);
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments-o').addClass('fa-comments');
- $('#profile-nocomment-wrapper').attr('title', '{{$nocomment_enabled}}');
+ $('#profile-nocomment-wrapper').attr('title', '{{$nocomment_enabled|escape:'javascript'}}');
}
else {
$('#jot-nocomment').val(1);
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o');
- $('#profile-nocomment-wrapper').attr('title', '{{$nocomment_disabled}}');
+ $('#profile-nocomment-wrapper').attr('title', '{{$nocomment_disabled|escape:'javascript'}}');
}
}