fixing issue where notifications toggle was causing an ajaxify

v1.18.x
Julian Lam 12 years ago
parent 93d4630433
commit 7a1e1b5b60

@ -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) {

Loading…
Cancel
Save