From 17eaae81dc8d586fa372390ca11848d2e8695dfe Mon Sep 17 00:00:00 2001 From: somebody Date: Mon, 26 Dec 2022 22:55:08 -0600 Subject: [PATCH] Remove enable/disable for generated images Not really a point of having a disabled state if you can just not check images... --- static/koboldai.css | 7 ------- static/koboldai.js | 9 +-------- templates/popups.html | 8 +------- 3 files changed, 2 insertions(+), 22 deletions(-) diff --git a/static/koboldai.css b/static/koboldai.css index 50dbf990..952edb63 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -1312,13 +1312,6 @@ td.server_vars { margin-bottom: 3px; } -#screenshot-wizard .distribution-bar { - display: flex; - justify-content: space-between; - padding-left: 5px; - padding-right: 5px; -} - #screenshot-options .indent { margin-left: 15px; } diff --git a/static/koboldai.js b/static/koboldai.js index 98e68196..4475fd2a 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -6935,17 +6935,11 @@ $el(".gametext").addEventListener("keydown", function(event) { (async function() { const screenshotTarget = $el("#screenshot-target"); const screenshotImagePicker = $el("#screenshot-image-picker"); - const genImgToggle = $el("#sw-gen-img"); const attributionToggle = $el("#sw-attribution"); const screenshotImageContainer = $el("#screenshot-images"); // JQuery required for bootstrap toggle events - $(genImgToggle).change(function() { - screenshotImagePicker.classList.toggle("disabled", !genImgToggle.checked); - updateShownImages(); - }); - - $(genImgToggle).bootstrapToggle(); + // TODO: Settings async function showScreenshotWizard() { let imageData = await (await fetch("/image_db.json")).json(); @@ -6970,7 +6964,6 @@ $el(".gametext").addEventListener("keydown", function(event) { function updateShownImages() { screenshotImageContainer.innerHTML = ""; - if (!genImgToggle.checked) return; for (const imgCont of screenshotImagePicker.children) { const checked = imgCont.querySelector("input").checked; diff --git a/templates/popups.html b/templates/popups.html index 9a368fc1..a666f1ff 100644 --- a/templates/popups.html +++ b/templates/popups.html @@ -386,13 +386,7 @@
Boring Colors
-
-
Generated Images
-
- Enabled - -
-
+
Generated Images
Download Screenshot