interim commit on notifications dropdown

v1.18.x
Julian Lam 12 years ago
parent 6bae30336a
commit 6f4c480cd8

@ -52,8 +52,6 @@
name = document.createElement('span') name = document.createElement('span')
logoutEl = document.createElement('li'); logoutEl = document.createElement('li');
right_menu.innerHTML = '';
logoutEl.innerHTML = '<a href="/logout">Log out</a>'; logoutEl.innerHTML = '<a href="/logout">Log out</a>';
name.innerHTML = data['username']; name.innerHTML = data['username'];
@ -81,7 +79,6 @@
} }
}); });
// Post window events // Post window events
var postWindowEl = document.getElementById('post_window'), var postWindowEl = document.getElementById('post_window'),
discardEl = document.getElementById('discard-post'); discardEl = document.getElementById('discard-post');
@ -89,6 +86,9 @@
$(postWindowEl).slideToggle(250); $(postWindowEl).slideToggle(250);
$(document.body).removeClass('composing'); $(document.body).removeClass('composing');
}, false); }, false);
// Notifications dropdown
// var notifTrigger = document.querySelector('.notifications a');
}()); }());
</script> </script>
<!-- END Forum Info --> <!-- END Forum Info -->

@ -45,6 +45,12 @@
</li> </li>
</ul> </ul>
<ul class="nav pull-right nodebb-inline-block" id="right-menu"> <ul class="nav pull-right nodebb-inline-block" id="right-menu">
<li class="notifications">
<a href="#" id="notif_dropdown"><i class="icon-circle-blank"></i></a>
<ul class="dropdown-menu" aria-labelledby="notif_dropdown">
<li>nibs!</li>
</ul>
</li>
</ul> </ul>
</div> </div>
</div> </div>

Loading…
Cancel
Save