mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: use components for toggleNavbar instead
This commit is contained in:
@@ -412,10 +412,10 @@ app.cacheBuster = null;
|
|||||||
};
|
};
|
||||||
|
|
||||||
app.toggleNavbar = function (state) {
|
app.toggleNavbar = function (state) {
|
||||||
var navbarEl = $('.navbar');
|
require(['components'], (components) => {
|
||||||
if (navbarEl) {
|
const navbarEl = components.get('navbar');
|
||||||
navbarEl[state ? 'show' : 'hide']();
|
navbarEl[state ? 'show' : 'hide']();
|
||||||
}
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
function createHeaderTooltips() {
|
function createHeaderTooltips() {
|
||||||
|
|||||||
Reference in New Issue
Block a user