Merge pull request #8168 from nupplaphil/bug/8165-notification-bubble
Fix Notification bubble
This commit is contained in:
commit
230bb6dd53
2 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ use Friendica\Util\XML;
|
||||||
* "birthdays-today": 0,
|
* "birthdays-today": 0,
|
||||||
* "groups": [ ],
|
* "groups": [ ],
|
||||||
* "forums": [ ],
|
* "forums": [ ],
|
||||||
* "notify": 0,
|
* "notification": 0,
|
||||||
* "notifications": [ ],
|
* "notifications": [ ],
|
||||||
* "sysmsgs": {
|
* "sysmsgs": {
|
||||||
* "notice": [ ],
|
* "notice": [ ],
|
||||||
|
@ -351,7 +351,7 @@ function ping_init(App $a)
|
||||||
if ($format == 'json') {
|
if ($format == 'json') {
|
||||||
$data['groups'] = $groups_unseen;
|
$data['groups'] = $groups_unseen;
|
||||||
$data['forums'] = $forums_unseen;
|
$data['forums'] = $forums_unseen;
|
||||||
$data['notify'] = $sysnotify_count + $intro_count + $register_count;
|
$data['notification'] = $sysnotify_count + $intro_count + $register_count;
|
||||||
$data['notifications'] = $notifications;
|
$data['notifications'] = $notifications;
|
||||||
$data['sysmsgs'] = [
|
$data['sysmsgs'] = [
|
||||||
'notice' => $sysmsgs,
|
'notice' => $sysmsgs,
|
||||||
|
|
|
@ -245,7 +245,7 @@ $(function() {
|
||||||
window.location.href=window.location.href
|
window.location.href=window.location.href
|
||||||
}
|
}
|
||||||
|
|
||||||
['net', 'home', 'intro', 'mail', 'events', 'birthdays', 'notify'].forEach(function(type) {
|
['net', 'home', 'intro', 'mail', 'events', 'birthdays', 'notification'].forEach(function(type) {
|
||||||
var number = data[type];
|
var number = data[type];
|
||||||
if (number == 0) {
|
if (number == 0) {
|
||||||
number = '';
|
number = '';
|
||||||
|
@ -349,7 +349,7 @@ $(function() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var notif = data['notify'];
|
var notif = data['notification'];
|
||||||
if (notif > 0) {
|
if (notif > 0) {
|
||||||
$("#nav-notifications-linkmenu").addClass("on");
|
$("#nav-notifications-linkmenu").addClass("on");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue