mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-15 11:40:44 +01:00
Save settings after switching style toggle
This commit is contained in:
parent
f8c631b4aa
commit
61c148a5f0
@ -3503,36 +3503,36 @@ $(document).ready(() => {
|
|||||||
$('#messageTimerEnabled').on('input', function () {
|
$('#messageTimerEnabled').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.timer_enabled = value;
|
power_user.timer_enabled = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchTimer();
|
switchTimer();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#messageTimestampsEnabled').on('input', function () {
|
$('#messageTimestampsEnabled').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.timestamps_enabled = value;
|
power_user.timestamps_enabled = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchTimestamps();
|
switchTimestamps();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#messageModelIconEnabled').on('input', function () {
|
$('#messageModelIconEnabled').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.timestamp_model_icon = value;
|
power_user.timestamp_model_icon = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchIcons();
|
switchIcons();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#messageTokensEnabled').on('input', function () {
|
$('#messageTokensEnabled').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.message_token_count_enabled = value;
|
power_user.message_token_count_enabled = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchTokenCount();
|
switchTokenCount();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#expandMessageActions').on('input', function () {
|
$('#expandMessageActions').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.expand_message_actions = value;
|
power_user.expand_message_actions = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchMessageActions();
|
switchMessageActions();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#enableZenSliders').on('input', function () {
|
$('#enableZenSliders').on('input', function () {
|
||||||
@ -3544,8 +3544,8 @@ $(document).ready(() => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
power_user.enableZenSliders = value;
|
power_user.enableZenSliders = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchZenSliders();
|
switchZenSliders();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#enableLabMode').on('input', function () {
|
$('#enableLabMode').on('input', function () {
|
||||||
@ -3558,22 +3558,22 @@ $(document).ready(() => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
power_user.enableLabMode = value;
|
power_user.enableLabMode = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchLabMode();
|
switchLabMode();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#mesIDDisplayEnabled').on('input', function () {
|
$('#mesIDDisplayEnabled').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.mesIDDisplay_enabled = value;
|
power_user.mesIDDisplay_enabled = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchMesIDDisplay();
|
switchMesIDDisplay();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#hideChatAvatarsEnabled').on('input', function () {
|
$('#hideChatAvatarsEnabled').on('input', function () {
|
||||||
const value = !!$(this).prop('checked');
|
const value = !!$(this).prop('checked');
|
||||||
power_user.hideChatAvatars_enabled = value;
|
power_user.hideChatAvatars_enabled = value;
|
||||||
saveSettingsDebounced();
|
|
||||||
switchHideChatAvatars();
|
switchHideChatAvatars();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#hotswapEnabled').on('input', function () {
|
$('#hotswapEnabled').on('input', function () {
|
||||||
@ -3688,8 +3688,8 @@ $(document).ready(() => {
|
|||||||
$('#ui_mode_select').on('change', function () {
|
$('#ui_mode_select').on('change', function () {
|
||||||
const value = $(this).find(':selected').val();
|
const value = $(this).find(':selected').val();
|
||||||
power_user.ui_mode = Number(value);
|
power_user.ui_mode = Number(value);
|
||||||
saveSettingsDebounced();
|
|
||||||
switchSimpleMode();
|
switchSimpleMode();
|
||||||
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#bogus_folders').on('input', function () {
|
$('#bogus_folders').on('input', function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user