Compare commits

...

1 Commits

Author SHA1 Message Date
Richard Schreiber
52d537dec9 Fix initial sidebar display for mobile 2024-08-26 11:22:51 +02:00

View File

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