mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-07-01 01:58:56 +02:00
Allow empty query for repository search
This commit is contained in:
@@ -121,9 +121,11 @@
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
@*
|
||||
$('#search').submit(function(){
|
||||
return $.trim($(this).find('input[name=query]').val()) != '';
|
||||
});
|
||||
*@
|
||||
@if(body.toString.contains("main-sidebar")){
|
||||
$(".sidebar-toggle").on('click', function(e){
|
||||
$.post('@context.path/sidebar-collapse', { collapse: !$('body').hasClass('sidebar-collapse') });
|
||||
|
||||
Reference in New Issue
Block a user