mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
Replace hardcoded button title in javascript to translatable text
This commit is contained in:
parent
2e7f4c1870
commit
cb9ac6dd34
2 changed files with 4 additions and 2 deletions
|
@ -1194,6 +1194,8 @@ function status_editor($a, $x, $popup = false) {
|
|||
'$modalerrorlist' => t('Error getting album list'),
|
||||
'$modalerrorlink' => t('Error getting photo link'),
|
||||
'$modalerroralbum' => t('Error getting album'),
|
||||
'$nocomment_enabled' => t('Comments enabled'),
|
||||
'$nocomment_disabled' => t('Comments disabled'),
|
||||
));
|
||||
|
||||
$tpl = get_markup_template('jot.tpl');
|
||||
|
|
|
@ -375,12 +375,12 @@ function enableOnUser(){
|
|||
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', 'Comments enabled');
|
||||
$('#profile-nocomment-wrapper').attr('title', '{{$nocomment_enabled}}');
|
||||
}
|
||||
else {
|
||||
$('#jot-nocomment').val(1);
|
||||
$('#profile-nocomment, #profile-nocomment-sub').removeClass('fa-comments').addClass('fa-comments-o');
|
||||
$('#profile-nocomment-wrapper').attr('title', 'Comments disabled');
|
||||
$('#profile-nocomment-wrapper').attr('title', '{{$nocomment_disabled}}');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue