feat: use new hooks introduced by nodebb/nodebb#10907

main
Julian Lam 2 years ago
parent 98d52e7f01
commit 8d1306e6fc

@ -57,6 +57,16 @@ $(document).ready(function () {
navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
navbarEl.css('top', '');
hooks
.on('filter:navigator.scroll', (data) => {
navbarEl.autoHidingNavbar('setDisableAutohide', true);
return data;
})
.on('action:navigator.scrolled', () => {
console.warn('reenabling', navbarEl);
navbarEl.autoHidingNavbar('setDisableAutohide', false);
});
hooks.fire('filter:persona.configureNavbarHiding', {
resizeEnvs: preference,
}).then(({ resizeEnvs }) => {

Loading…
Cancel
Save