mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Use init function
This commit is contained in:
@ -137,7 +137,7 @@ function selectSystemPromptCallback(args, name) {
|
||||
return foundName;
|
||||
}
|
||||
|
||||
jQuery(function () {
|
||||
export function initSystemPrompts() {
|
||||
$enabled.on('input', function () {
|
||||
power_user.sysprompt.enabled = !!$(this).prop('checked');
|
||||
toggleSystemPromptDisabledControls();
|
||||
@ -236,4 +236,4 @@ jQuery(function () {
|
||||
],
|
||||
callback: toggleSystemPromptCallback,
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user