fix js error with catalan language (unescaped strings)

This commit is contained in:
Mario Vavti 2018-05-27 12:20:07 +02:00
parent eb04dbc5ce
commit 5a475453ab

View File

@ -365,12 +365,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'}}');
}
}