mirror of
https://github.com/friendica/friendica
synced 2025-04-22 17:50:11 +00:00
Fix #2814
- [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:
parent
835edf74b3
commit
f4c2e2244d
2 changed files with 7 additions and 5 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue