mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fixing issue where notifications toggle was causing an ajaxify
This commit is contained in:
@@ -86,7 +86,8 @@
|
||||
var notifContainer = document.getElementsByClassName('notifications')[0],
|
||||
notifTrigger = notifContainer.querySelector('a'),
|
||||
notifList = document.getElementById('notif-list');
|
||||
notifTrigger.addEventListener('click', function() {
|
||||
notifTrigger.addEventListener('click', function(e) {
|
||||
e.preventDefault();
|
||||
if (notifContainer.className.indexOf('open') === -1) socket.emit('api:notifications.get');
|
||||
});
|
||||
notifList.addEventListener('click', function(e) {
|
||||
|
||||
Reference in New Issue
Block a user