mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 23:15:49 +01:00
(refs #1275)Keep sidebar status during same session
This commit is contained in:
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user