Commit 0b76da6a authored by Leo Iannacone's avatar Leo Iannacone

show packages search only if there are packages

parent 0a47a947
...@@ -180,8 +180,10 @@ function Page_Distrubion(socket) { ...@@ -180,8 +180,10 @@ function Page_Distrubion(socket) {
$('#packages .search .text').val(name); $('#packages .search .text').val(name);
$('#packages .search .text').keyup(); $('#packages .search .text').keyup();
}); });
$('#packages .search').show();
packages.select(); packages.select();
} else { } else {
$('#packages .search').hide();
$('#packages ul').append('<li class="disabled"><a>No packages yet</a></li>'); $('#packages ul').append('<li class="disabled"><a>No packages yet</a></li>');
} }
packages.show(); packages.show();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment