allow jgrowl 'close all' message to be translated
This commit is contained in:
parent
e664d6486a
commit
a4869394f4
@ -14,6 +14,7 @@ function js_strings() {
|
||||
'$passphrase' => t('Secret Passphrase'),
|
||||
'$passhint' => t('Passphrase hint'),
|
||||
'$permschange' => t('Notice: Permissions have changed but have not yet been submitted.'),
|
||||
'$closeAll' => t('close all'),
|
||||
|
||||
'$t01' => ((t('timeago.prefixAgo') != 'timeago.prefixAgo') ? t('timeago.prefixAgo') : ''),
|
||||
'$t02' => ((t('timeago.prefixFromNow') != 'timeago.prefixFromNow') ? t('timeago.prefixFromNow') : ''),
|
||||
|
@ -341,6 +341,7 @@
|
||||
if(data.all_events_today == 0) { data.all_events_today = ''; $('.all_events-today-update').removeClass('show') } else { $('.all_events-today-update').addClass('show') }
|
||||
$('.all_events-today-update').html(data.all_events_today);
|
||||
|
||||
$.jGrowl.defaults.closerTemplate = '<div>[ ' + aStr['closeAll'] + ']</div>';
|
||||
|
||||
$(data.notice).each(function() {
|
||||
$.jGrowl(this.message, { sticky: true, theme: 'notice' });
|
||||
|
@ -14,6 +14,7 @@
|
||||
'passphrase' : "{{$passphrase}}",
|
||||
'passhint' : "{{$passhint}}",
|
||||
'permschange' : "{{$permschange}}",
|
||||
'closeAll' : "{{$closeAll}}",
|
||||
|
||||
't01' : "{{$t01}}",
|
||||
't02' : "{{$t02}}",
|
||||
|
Reference in New Issue
Block a user