mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
/admin/plugins: Make it display the same amount of plugins after sorting
This commit is contained in:
parent
5d7a8adcb7
commit
511407241a
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue