Replace hardcoded button title in javascript to translatable text

This commit is contained in:
Andrew Manning 2016-08-14 06:46:48 -04:00
parent 2e7f4c1870
commit cb9ac6dd34
2 changed files with 4 additions and 2 deletions

View file

@ -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');

View file

@ -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}}');
}
}