#1221 Button to refresh WI sorts
This commit is contained in:
parent
15cf87ef01
commit
2cbde8b55c
|
@ -103,6 +103,10 @@
|
||||||
align-self: start;
|
align-self: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gap3px {
|
||||||
|
gap: 3px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.gap5px {
|
.gap5px {
|
||||||
gap: 5px !important;
|
gap: 5px !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2743,7 +2743,7 @@
|
||||||
|
|
||||||
<div id="world_popup">
|
<div id="world_popup">
|
||||||
<hr>
|
<hr>
|
||||||
<div class="flex-container alignitemscenter">
|
<div class="flex-container alignitemscenter gap3px">
|
||||||
<input type="file" id="world_import_file" accept=".json,.lorebook,.png" name="avatar" hidden>
|
<input type="file" id="world_import_file" accept=".json,.lorebook,.png" name="avatar" hidden>
|
||||||
<div id="world_create_button" class="menu_button menu_button_icon">
|
<div id="world_create_button" class="menu_button menu_button_icon">
|
||||||
<i class="fa-solid fa-globe"></i>
|
<i class="fa-solid fa-globe"></i>
|
||||||
|
@ -2777,6 +2777,7 @@
|
||||||
<option data-order="asc" data-field="probability" value="11">Trigger% ↗</option>
|
<option data-order="asc" data-field="probability" value="11">Trigger% ↗</option>
|
||||||
<option data-order="desc" data-field="probability" value="12">Trigger% ↘</option>
|
<option data-order="desc" data-field="probability" value="12">Trigger% ↘</option>
|
||||||
</select>
|
</select>
|
||||||
|
<div id="world_refresh" class="menu_button fa-solid fa-arrows-rotate" title="Refresh" data-i18n="[title]Refresh"></div>
|
||||||
<div id="world_info_pagination"></div>
|
<div id="world_info_pagination"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -2006,6 +2006,10 @@ jQuery(() => {
|
||||||
worldInfoFilter.setFilterData(FILTER_TYPES.WORLD_INFO_SEARCH, term);
|
worldInfoFilter.setFilterData(FILTER_TYPES.WORLD_INFO_SEARCH, term);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#world_refresh').on('click', () => {
|
||||||
|
updateEditor(navigation_option.previous);
|
||||||
|
});
|
||||||
|
|
||||||
$('#world_info_sort_order').on('change', function(e) {
|
$('#world_info_sort_order').on('change', function(e) {
|
||||||
if (e.target instanceof HTMLOptionElement) {
|
if (e.target instanceof HTMLOptionElement) {
|
||||||
localStorage.setItem(SORT_ORDER_KEY, e.target.value);
|
localStorage.setItem(SORT_ORDER_KEY, e.target.value);
|
||||||
|
|
Loading…
Reference in New Issue