mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
disabled spammy coneole.logs
This commit is contained in:
@ -1773,7 +1773,7 @@ function read_avatar_load(input) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getChat() {
|
async function getChat() {
|
||||||
console.log('/getchat -- entered for -- ' + characters[this_chid].name);
|
//console.log('/getchat -- entered for -- ' + characters[this_chid].name);
|
||||||
try {
|
try {
|
||||||
const response = await $.ajax({
|
const response = await $.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
@ -1874,7 +1874,7 @@ function changeMainAPI() {
|
|||||||
softPromptElem: $("#softprompt_block"),
|
softPromptElem: $("#softprompt_block"),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
console.log('--- apiElements--- ');
|
//console.log('--- apiElements--- ');
|
||||||
//console.log(apiElements);
|
//console.log(apiElements);
|
||||||
|
|
||||||
for (const apiName in apiElements) {
|
for (const apiName in apiElements) {
|
||||||
@ -1887,7 +1887,7 @@ function changeMainAPI() {
|
|||||||
apiObj.apiPresets.css("display", isCurrentApi ? "block" : "none");
|
apiObj.apiPresets.css("display", isCurrentApi ? "block" : "none");
|
||||||
|
|
||||||
if (isCurrentApi && apiName === "kobold") {
|
if (isCurrentApi && apiName === "kobold") {
|
||||||
console.log("enabling SP for kobold");
|
//console.log("enabling SP for kobold");
|
||||||
$("#softprompt_block").css("display", "block");
|
$("#softprompt_block").css("display", "block");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2065,7 +2065,7 @@ async function getSettings(type) {
|
|||||||
|
|
||||||
swipes = !!settings.swipes; //// swipecode
|
swipes = !!settings.swipes; //// swipecode
|
||||||
$('#swipes-checkbox').prop('checked', swipes); /// swipecode
|
$('#swipes-checkbox').prop('checked', swipes); /// swipecode
|
||||||
console.log('getSettings -- swipes = ' + swipes + '. toggling box');
|
//console.log('getSettings -- swipes = ' + swipes + '. toggling box');
|
||||||
hideSwipeButtons();
|
hideSwipeButtons();
|
||||||
//console.log('getsettings calling showswipebtns');
|
//console.log('getsettings calling showswipebtns');
|
||||||
showSwipeButtons();
|
showSwipeButtons();
|
||||||
@ -4096,7 +4096,7 @@ $(document).ready(function () {
|
|||||||
if (clickTarget.hasClass('drawer-icon') == false && !clickTarget.hasClass('openDrawer')) {
|
if (clickTarget.hasClass('drawer-icon') == false && !clickTarget.hasClass('openDrawer')) {
|
||||||
if (jQuery.find('.openDrawer').length !== 0) {
|
if (jQuery.find('.openDrawer').length !== 0) {
|
||||||
if (targetParentHasOpenDrawer === 0) {
|
if (targetParentHasOpenDrawer === 0) {
|
||||||
console.log($('.openDrawer').not('.pinnedOpen').length);
|
//console.log($('.openDrawer').not('.pinnedOpen').length);
|
||||||
$('.openDrawer').not('.pinnedOpen').slideToggle(200, "swing");
|
$('.openDrawer').not('.pinnedOpen').slideToggle(200, "swing");
|
||||||
$('.openIcon').toggleClass('closedIcon openIcon');
|
$('.openIcon').toggleClass('closedIcon openIcon');
|
||||||
$('.openDrawer').not('.pinnedOpen').toggleClass('closedDrawer openDrawer');
|
$('.openDrawer').not('.pinnedOpen').toggleClass('closedDrawer openDrawer');
|
||||||
|
@ -100,7 +100,7 @@ $("#character_popup").on("input", function () { RA_CountCharTokens(); });
|
|||||||
//function:
|
//function:
|
||||||
function RA_CountCharTokens() {
|
function RA_CountCharTokens() {
|
||||||
$("#result_info").html("");
|
$("#result_info").html("");
|
||||||
console.log('RA_TC -- starting with this_chid = ' + this_chid);
|
//console.log('RA_TC -- starting with this_chid = ' + this_chid);
|
||||||
if (document.getElementById('name_div').style.display == "block") { //if new char
|
if (document.getElementById('name_div').style.display == "block") { //if new char
|
||||||
|
|
||||||
$("#form_create").on("input", function () { //fill temp vars with form_create values
|
$("#form_create").on("input", function () { //fill temp vars with form_create values
|
||||||
@ -165,7 +165,7 @@ function RA_CountCharTokens() {
|
|||||||
//Auto Load Last Charcter -- (fires when active_character is defined and auto_load_chat is true)
|
//Auto Load Last Charcter -- (fires when active_character is defined and auto_load_chat is true)
|
||||||
async function RA_autoloadchat() {
|
async function RA_autoloadchat() {
|
||||||
if (document.getElementById('CharID0') !== null) {
|
if (document.getElementById('CharID0') !== null) {
|
||||||
console.log('char list loaded! clicking activeChar');
|
//console.log('char list loaded! clicking activeChar');
|
||||||
var CharToAutoLoad = document.getElementById('CharID' + LoadLocal('ActiveChar'));
|
var CharToAutoLoad = document.getElementById('CharID' + LoadLocal('ActiveChar'));
|
||||||
if (CharToAutoLoad != null) {
|
if (CharToAutoLoad != null) {
|
||||||
CharToAutoLoad.click();
|
CharToAutoLoad.click();
|
||||||
@ -174,14 +174,14 @@ async function RA_autoloadchat() {
|
|||||||
}
|
}
|
||||||
RestoreNavTab();
|
RestoreNavTab();
|
||||||
} else {
|
} else {
|
||||||
console.log('no char list yet..');
|
//console.log('no char list yet..');
|
||||||
setTimeout(RA_autoloadchat, 100); // if the charcter list hadn't been loaded yet, try again.
|
setTimeout(RA_autoloadchat, 100); // if the charcter list hadn't been loaded yet, try again.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//only triggers when AutoLoadChat is enabled, consider adding this as an independent feature later.
|
//only triggers when AutoLoadChat is enabled, consider adding this as an independent feature later.
|
||||||
function RestoreNavTab() {
|
function RestoreNavTab() {
|
||||||
if ($('#rm_button_selected_ch').children("h2").text() !== '') { //check for a change in the character edit tab name
|
if ($('#rm_button_selected_ch').children("h2").text() !== '') { //check for a change in the character edit tab name
|
||||||
console.log('detected ALC char finished loaded, proceeding to restore tab.');
|
//console.log('detected ALC char finished loaded, proceeding to restore tab.');
|
||||||
$(SelectedNavTab).click(); //click to restore saved tab when name has changed (signalling char load is done)
|
$(SelectedNavTab).click(); //click to restore saved tab when name has changed (signalling char load is done)
|
||||||
} else {
|
} else {
|
||||||
setTimeout(RestoreNavTab, 100); //if not changed yet, check again after 100ms
|
setTimeout(RestoreNavTab, 100); //if not changed yet, check again after 100ms
|
||||||
@ -244,7 +244,7 @@ function RA_autoconnect(PrevApi) {
|
|||||||
|
|
||||||
RA_AC_retries++;
|
RA_AC_retries++;
|
||||||
retry_delay = Math.min(retry_delay * 2, 30000); // double retry delay up to to 30 secs
|
retry_delay = Math.min(retry_delay * 2, 30000); // double retry delay up to to 30 secs
|
||||||
console.log('connection attempts: ' + RA_AC_retries + ' delay: ' + (retry_delay / 1000) + 's');
|
//console.log('connection attempts: ' + RA_AC_retries + ' delay: ' + (retry_delay / 1000) + 's');
|
||||||
setTimeout(RA_autoconnect, retry_delay);
|
setTimeout(RA_autoconnect, retry_delay);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -290,7 +290,7 @@ $("document").ready(function () {
|
|||||||
// read the state of Nav Lock and apply to rightnav classlist
|
// read the state of Nav Lock and apply to rightnav classlist
|
||||||
$(PanelPin).prop('checked', LoadLocalBool("NavLockOn"));
|
$(PanelPin).prop('checked', LoadLocalBool("NavLockOn"));
|
||||||
if (LoadLocalBool("NavLockOn") == true) {
|
if (LoadLocalBool("NavLockOn") == true) {
|
||||||
console.log('setting pin class via local var');
|
//console.log('setting pin class via local var');
|
||||||
$(RightNavPanel).addClass('pinnedOpen');
|
$(RightNavPanel).addClass('pinnedOpen');
|
||||||
}
|
}
|
||||||
if ($(PanelPin).prop('checked' == true)) {
|
if ($(PanelPin).prop('checked' == true)) {
|
||||||
|
Reference in New Issue
Block a user