/admin/plugins: Make it display the same amount of plugins after sorting
This commit is contained in:
parent
5d7a8adcb7
commit
511407241a
|
@ -106,15 +106,15 @@ $(document).ready(function () {
|
||||||
search.sortBy = $(this).text().toLowerCase();
|
search.sortBy = $(this).text().toLowerCase();
|
||||||
search.sortDir = false;
|
search.sortDir = false;
|
||||||
search.offset = 0;
|
search.offset = 0;
|
||||||
search.results = [];
|
|
||||||
search(search.searchTerm, search.results.length);
|
search(search.searchTerm, search.results.length);
|
||||||
|
search.results = [];
|
||||||
})
|
})
|
||||||
$('.sort.down, .sort.none').unbind('click').click(function() {
|
$('.sort.down, .sort.none').unbind('click').click(function() {
|
||||||
search.sortBy = $(this).text().toLowerCase();
|
search.sortBy = $(this).text().toLowerCase();
|
||||||
search.sortDir = true;
|
search.sortDir = true;
|
||||||
search.offset = 0;
|
search.offset = 0;
|
||||||
|
search(search.searchTerm, search.results.length);
|
||||||
search.results = [];
|
search.results = [];
|
||||||
search(search.searchTerm);
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue