mirror of
https://github.com/friendica/friendica
synced 2025-04-22 13:10:11 +00:00
Merge pull request #2224 from rabuzarus/2812_js_scrollbars
Since we can easily remove it, we can accept this - and change it back if we need to. I haven't check accessibility - but this can be done later.
This commit is contained in:
commit
771d0c4bfa
6 changed files with 2142 additions and 0 deletions
|
@ -147,6 +147,7 @@
|
|||
} else {
|
||||
last_popup_menu = menu;
|
||||
last_popup_button = parent;
|
||||
$('#nav-notifications-menu').perfectScrollbar('update');
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
@ -167,6 +168,10 @@
|
|||
var notifications_mark = unescape($('<div>').append( $("#nav-notifications-mark-all").clone() ).html()); //outerHtml hack
|
||||
var notifications_empty = unescape($("#nav-notifications-menu").html());
|
||||
|
||||
/* enable perfect-scrollbars for nav-notivications-menu */
|
||||
$('#nav-notifications-menu').perfectScrollbar();
|
||||
$('aside').perfectScrollbar();
|
||||
|
||||
/* nav update event */
|
||||
$('nav').bind('nav-update', function(e,data){
|
||||
var invalid = $(data).find('invalid').text();
|
||||
|
@ -311,6 +316,9 @@
|
|||
$.jGrowl(text, { sticky: false, theme: 'info', life: 5000 });
|
||||
});
|
||||
|
||||
/* update the js scrollbars */
|
||||
$('#nav-notifications-menu').perfectScrollbar('update');
|
||||
|
||||
});
|
||||
|
||||
NavUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue