fix js error with catalan language (unescaped strings)
This commit is contained in:
parent
13b3594ff3
commit
9655b27f81
@ -407,12 +407,12 @@ var activeCommentText = '';
|
|||||||
if($('#jot-nocomment').val() > 0) {
|
if($('#jot-nocomment').val() > 0) {
|
||||||
$('#jot-nocomment').val(0);
|
$('#jot-nocomment').val(0);
|
||||||
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments-o').addClass('fa-comments');
|
$('#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 {
|
else {
|
||||||
$('#jot-nocomment').val(1);
|
$('#jot-nocomment').val(1);
|
||||||
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o');
|
$('#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'}}');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user