|
|
|
@ -10,6 +10,7 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'ben
|
|
|
|
|
var notifContainer = components.get('notifications');
|
|
|
|
|
var notifTrigger = notifContainer.children('a');
|
|
|
|
|
var notifList = components.get('notifications/list');
|
|
|
|
|
var notifDropdownWrapper = notifTrigger.parents('.dropdown');
|
|
|
|
|
|
|
|
|
|
notifTrigger.on('click', function (e) {
|
|
|
|
|
e.preventDefault();
|
|
|
|
@ -20,6 +21,10 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'ben
|
|
|
|
|
Notifications.loadNotifications(notifList);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (notifDropdownWrapper.hasClass('open')) {
|
|
|
|
|
Notifications.loadNotifications(notifList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
notifList.on('click', '[data-nid]', function (ev) {
|
|
|
|
|
var notifEl = $(this);
|
|
|
|
|
if (scrollToPostIndexIfOnPage(notifEl)) {
|
|
|
|
|