mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
midway through changes to right nav state saving
This commit is contained in:
@ -276,7 +276,12 @@ $("document").ready(function () {
|
|||||||
$("#api_button").click(function () { setTimeout(RA_checkOnlineStatus, 100); });
|
$("#api_button").click(function () { setTimeout(RA_checkOnlineStatus, 100); });
|
||||||
|
|
||||||
//save NavLock prefs and record state of the Nav being open or closed
|
//save NavLock prefs and record state of the Nav being open or closed
|
||||||
$(NavToggle).on("change", function () { SaveLocal("NavOpened", $(NavToggle).prop("checked")); });
|
$(RightNavPanel).on("change", function () {
|
||||||
|
if ($(RightNavPanel).hasClass('openDrawer')) {
|
||||||
|
SaveLocal("NavOpened", true);
|
||||||
|
} else { SaveLocal("NavOpened", false); }
|
||||||
|
});
|
||||||
|
|
||||||
$(PanelPin).on("change", function () { SaveLocal("NavLockOn", $(PanelPin).prop("checked")); });
|
$(PanelPin).on("change", function () { SaveLocal("NavLockOn", $(PanelPin).prop("checked")); });
|
||||||
|
|
||||||
//save AutoConnect and AutoLoadChat prefs
|
//save AutoConnect and AutoLoadChat prefs
|
||||||
|
Reference in New Issue
Block a user