- [frio] Add a wrapping `a` tag around the notification text
- Add an event listener preventing popup menus to close when they are
themselves clicked
This commit is contained in:
Hypolite Petovan 2016-09-29 23:46:43 -04:00
parent 835edf74b3
commit f4c2e2244d
2 changed files with 7 additions and 5 deletions

View file

@ -130,6 +130,7 @@
function close_last_popup_menu() {
if(last_popup_menu) {
last_popup_menu.hide();
last_popup_menu.off('click', function(e) {e.stopPropagation()});
last_popup_button.removeClass("selected");
last_popup_menu = null;
last_popup_button = null;
@ -152,6 +153,7 @@
last_popup_button = null;
} else {
last_popup_menu = menu;
last_popup_menu.on('click', function(e) {e.stopPropagation()});
last_popup_button = parent;
$('#nav-notifications-menu').perfectScrollbar('update');
}