forked from CGM_Public/pretix_original
Fix initial sidebar display for mobile
This commit is contained in:
committed by
GitHub
parent
1879e440a7
commit
8972715252
@@ -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 () {
|
$(window).bind("load resize", function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
$(window).bind("load resize", function () {
|
|
||||||
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) {
|
||||||
@@ -26,8 +25,9 @@ $(function () {
|
|||||||
if (height > topOffset) {
|
if (height > topOffset) {
|
||||||
$("#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,
|
||||||
|
|||||||
Reference in New Issue
Block a user