allow wiki sidebar to scroll on overflow

This commit is contained in:
Mike Greiling 2016-11-15 02:04:39 -06:00
parent 9fa6512501
commit 8e23d7ad84
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
/*= require latinise */
/*= require breakpoints */
/*= require jquery.nicescroll */
((global) => {
const dasherize = str => str.replace(/[_\s]+/g, '-');
@ -13,6 +14,7 @@
this.bp = Breakpoints.get();
this.sidebarEl = document.querySelector('.js-wiki-sidebar');
this.sidebarExpanded = false;
$(this.sidebarEl).niceScroll();
const sidebarToggles = document.querySelectorAll('.js-sidebar-wiki-toggle');
for (const toggle of sidebarToggles) {