Fix initial sidebar display for mobile

This commit is contained in:
Richard Schreiber
2024-08-26 12:01:25 +02:00
committed by GitHub
parent 1879e440a7
commit 8972715252

View File

@@ -8,9 +8,8 @@
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function () {
$(window).bind("load resize", function () {
'use strict';
$(window).bind("load resize", function () {
var topOffset = 50,
width = (this.window.innerWidth > 0) ? this.window.innerWidth : this.screen.width;
if (width < 768) {
@@ -26,8 +25,9 @@ $(function () {
if (height > topOffset) {
$("#page-wrapper").css("min-height", (height) + "px");
}
});
});
$(function () {
'use strict';
$('ul.nav ul.nav-second-level a.active').parent().parent().addClass('in').parent().addClass('active');
$('#side-menu').metisMenu({
'toggle': false,