add expand all icon to WI Editor

This commit is contained in:
RossAscends
2023-05-01 05:30:51 +09:00
parent efe8efbce2
commit f947990a55
2 changed files with 5 additions and 0 deletions

View File

@@ -1735,6 +1735,7 @@
<a href="/notes#worldinfoentry" class="notes-link" target="_blank"><span class="note-link-span">?</span></a>
</h3>
</div>
<div id="OpenAllWIEntries" class="menu_button fa-solid fa-expand"></div>
<div class="world_popup_expander">&nbsp;</div>
<form id="form_rename_world" action="javascript:void(null);" method="post" enctype="multipart/form-data">
<input id="world_popup_name" name="world_popup_name" class="text_pole" maxlength="99" size="32" value="" autocomplete="off">

View File

@@ -5400,6 +5400,10 @@ $(document).ready(function () {
$(this).closest('.inline-drawer').find('.inline-drawer-content').slideToggle();
});
$(document).on('click', '#OpenAllWIEntries', function () {
$("#world_popup_entries_list").children().find('.inline-drawer-header').click()
});
$(document).keyup(function (e) {
if (e.key === "Escape") {
if (power_user.auto_save_msg_edits === false) {