mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix backgrounds resetting on upload click
This commit is contained in:
@ -3241,6 +3241,11 @@ $(document).ready(function () {
|
|||||||
//when user clicks on a BG thumbnail...
|
//when user clicks on a BG thumbnail...
|
||||||
var this_bgfile = $(this).attr("bgfile"); // this_bgfile = whatever they clicked
|
var this_bgfile = $(this).attr("bgfile"); // this_bgfile = whatever they clicked
|
||||||
|
|
||||||
|
// if clicked on upload button
|
||||||
|
if (!this_bgfile) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (bg1_toggle == true) {
|
if (bg1_toggle == true) {
|
||||||
//if bg1 is toggled true (initially set as true in first JS vars)
|
//if bg1 is toggled true (initially set as true in first JS vars)
|
||||||
bg1_toggle = false; // then toggle it false
|
bg1_toggle = false; // then toggle it false
|
||||||
|
Reference in New Issue
Block a user