|
|
@ -11,6 +11,7 @@ function getNav() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function addSidebarToggler() {
|
|
|
|
function addSidebarToggler() {
|
|
|
|
|
|
|
|
if(!$('body').hasClass('sidebar-footer')) {
|
|
|
|
$('#content').append('<span class="toggle-sidebar"></span>');
|
|
|
|
$('#content').append('<span class="toggle-sidebar"></span>');
|
|
|
|
$('.toggle-sidebar').bind('click', function(e) {
|
|
|
|
$('.toggle-sidebar').bind('click', function(e) {
|
|
|
|
e.preventDefault();
|
|
|
|
e.preventDefault();
|
|
|
@ -20,6 +21,7 @@ function addSidebarToggler() {
|
|
|
|
$('body').addClass('collapse-sidebar');
|
|
|
|
$('body').addClass('collapse-sidebar');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
var sections = $('aside.sidebar > section');
|
|
|
|
var sections = $('aside.sidebar > section');
|
|
|
|
if (sections.length > 1) {
|
|
|
|
if (sections.length > 1) {
|
|
|
|
sections.each(function(section, index){
|
|
|
|
sections.each(function(section, index){
|
|
|
|