Navbar notifications: don't show "nothing new here" unless we've checked and there's nothing. Until we know for sure, display "Loading...".
This commit is contained in:
parent
44cb423f21
commit
22e6e691ca
@ -15,6 +15,7 @@ function js_strings() {
|
||||
'$passhint' => t('Passphrase hint'),
|
||||
'$permschange' => t('Notice: Permissions have changed but have not yet been submitted.'),
|
||||
'$closeAll' => t('close all'),
|
||||
'$nothingnew' => t('Nothing new here'),
|
||||
|
||||
'$t01' => ((t('timeago.prefixAgo') != 'timeago.prefixAgo') ? t('timeago.prefixAgo') : ''),
|
||||
'$t02' => ((t('timeago.prefixFromNow') != 'timeago.prefixFromNow') ? t('timeago.prefixFromNow') : ''),
|
||||
|
@ -246,7 +246,7 @@ EOT;
|
||||
'$sitelocation' => $sitelocation,
|
||||
'$nav' => $x['nav'],
|
||||
'$banner' => $banner,
|
||||
'$emptynotifications' => t('Nothing new here'),
|
||||
'$emptynotifications' => t('Loading...'),
|
||||
'$userinfo' => $x['usermenu'],
|
||||
'$localuser' => local_user(),
|
||||
'$sel' => $a->nav_sel,
|
||||
|
@ -743,7 +743,7 @@ function updateConvItems(mode,data) {
|
||||
|
||||
|
||||
if(data.notify.length==0){
|
||||
$("#nav-" + notifyType + "-menu").html(notifications_empty);
|
||||
$("#nav-" + notifyType + "-menu").html(aStr[nothingnew]);
|
||||
|
||||
} else {
|
||||
$("#nav-" + notifyType + "-menu").html(notifications_all + notifications_mark);
|
||||
|
@ -15,6 +15,7 @@
|
||||
'passhint' : "{{$passhint}}",
|
||||
'permschange' : "{{$permschange}}",
|
||||
'closeAll' : "{{$closeAll}}",
|
||||
'nothingnew' : "{{$nothingnew}}",
|
||||
|
||||
't01' : "{{$t01}}",
|
||||
't02' : "{{$t02}}",
|
||||
|
Reference in New Issue
Block a user