Show more recent notifications first in toolbar dropdown

pull/1/head
ClemDee 6 years ago
parent 287daac085
commit 4ce3678826

@ -947,7 +947,7 @@ MessengerUI, Messages) {
var openNotifsApp = h('div.cp-notifications-gotoapp', h('p', Messages.openNotificationsApp || "Open notifications App")); var openNotifsApp = h('div.cp-notifications-gotoapp', h('p', Messages.openNotificationsApp || "Open notifications App"));
$(openNotifsApp).click(function () { $(openNotifsApp).click(function () {
Common.openURL("/notifications"); Common.openURL("/notifications");
}) });
var div = h('div.cp-notifications-container', [ var div = h('div.cp-notifications-container', [
h('div.cp-notifications-empty', Messages.notifications_empty) h('div.cp-notifications-empty', Messages.notifications_empty)
]); ]);
@ -993,7 +993,7 @@ MessengerUI, Messages) {
Common.mailbox.subscribe(['notifications'], { Common.mailbox.subscribe(['notifications'], {
onMessage: function (data, el) { onMessage: function (data, el) {
if (el) { if (el) {
div.appendChild(el); $(div).prepend(el);
} }
refresh(); refresh();
}, },

Loading…
Cancel
Save