Disable search until registry is loaded and fix sorting by version

... and always display a scrollbar.
This commit is contained in:
Marcel Klehr 2013-03-26 19:22:04 +01:00
parent f75a839cd0
commit 2393dcd652
3 changed files with 4 additions and 3 deletions

View File

@ -43,7 +43,7 @@ div.innerwrapper {
box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2);
margin: auto;
max-width: 1150px;
min-height: 100%;
min-height: 101%;/*always display a scrollbar*/
}
h1 {

View File

@ -130,6 +130,7 @@ $(document).ready(function () {
if(!data.results.length) search.end = true;
$(".search-results .nothing-found").hide()
$(".search-results .fetching").hide()
$("#search-query").removeAttr('disabled')
console.log('got search results', data)

View File

@ -69,7 +69,7 @@
<h2>Available plugins</h2>
<form>
<input type="text" name="search" placeholder="Search for plugins to install" id="search-query">
<input type="text" name="search" disabled placeholder="Search for plugins to install" id="search-query">
</form>
<table>
@ -77,7 +77,7 @@
<tr>
<th class="sort up" data-label="name">Name</th>
<th class="sort none" data-label="description">Description</th>
<th class="sort none" data-label="Version">Version</th>
<th class="sort none" data-label="version">Version</th>
<td></td>
</tr>
</thead>