From 4ce36788263f9ba4faf21575b42acc7709c69b9d Mon Sep 17 00:00:00 2001 From: ClemDee Date: Tue, 2 Jul 2019 09:59:26 +0200 Subject: [PATCH] Show more recent notifications first in toolbar dropdown --- www/common/toolbar3.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/toolbar3.js b/www/common/toolbar3.js index f95334b72..b03a610b5 100644 --- a/www/common/toolbar3.js +++ b/www/common/toolbar3.js @@ -947,7 +947,7 @@ MessengerUI, Messages) { var openNotifsApp = h('div.cp-notifications-gotoapp', h('p', Messages.openNotificationsApp || "Open notifications App")); $(openNotifsApp).click(function () { Common.openURL("/notifications"); - }) + }); var div = h('div.cp-notifications-container', [ h('div.cp-notifications-empty', Messages.notifications_empty) ]); @@ -993,7 +993,7 @@ MessengerUI, Messages) { Common.mailbox.subscribe(['notifications'], { onMessage: function (data, el) { if (el) { - div.appendChild(el); + $(div).prepend(el); } refresh(); },