(refs #1275)Keep sidebar status during same session

This commit is contained in:
Naoki Takezoe
2016-11-19 23:02:41 +09:00
parent 59ed027b60
commit 6ffc139d2f
3 changed files with 16 additions and 3 deletions

View File

@@ -39,7 +39,7 @@
}
<script src="@helpers.assets/vendors/AdminLTE-2.3.6/js/app.js" type="text/javascript"></script>
</head>
<body class="skin-blue page-load">
<body class="skin-blue page-load @if(context.sidebarCollapse){sidebar-collapse}">
<div class="wrapper">
<header class="main-header">
<a href="@context.path/" class="logo">
@@ -115,6 +115,9 @@
$('#search').submit(function(){
return $.trim($(this).find('input[name=query]').val()) != '';
});
$(".sidebar-toggle").on('click', function(e){
$.get('@context.path/sidebar-collapse', { collapse: !$('body').hasClass('sidebar-collapse') });
});
});
</script>
@PluginRegistry().getJavaScript(context.request.getRequestURI).map { script =>