#1221 Button to refresh WI sorts

This commit is contained in:
Cohee
2023-10-08 12:30:12 +03:00
parent 15cf87ef01
commit 2cbde8b55c
3 changed files with 11 additions and 2 deletions

View File

@ -2006,6 +2006,10 @@ jQuery(() => {
worldInfoFilter.setFilterData(FILTER_TYPES.WORLD_INFO_SEARCH, term);
});
$('#world_refresh').on('click', () => {
updateEditor(navigation_option.previous);
});
$('#world_info_sort_order').on('change', function(e) {
if (e.target instanceof HTMLOptionElement) {
localStorage.setItem(SORT_ORDER_KEY, e.target.value);