From c79bf951b7a1f8e699804c87cac7482e92c6d331 Mon Sep 17 00:00:00 2001 From: RossAscends <124905043+RossAscends@users.noreply.github.com> Date: Thu, 26 Oct 2023 20:41:12 +0900 Subject: [PATCH] minor skill issue with slider overhaul --- public/index.html | 10 ++++------ public/scripts/textgen-settings.js | 6 ++---- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/public/index.html b/public/index.html index a1b1c784a..4ab1fbca3 100644 --- a/public/index.html +++ b/public/index.html @@ -539,9 +539,8 @@
-
- select -
+ +
@@ -554,9 +553,8 @@
-
- select -
+ +
diff --git a/public/scripts/textgen-settings.js b/public/scripts/textgen-settings.js index 25ffc2cb4..c278fe8cd 100644 --- a/public/scripts/textgen-settings.js +++ b/public/scripts/textgen-settings.js @@ -290,8 +290,7 @@ jQuery(function () { } else { const value = Number($(this).val()); - $(`#${id}_counter_textgenerationwebui`).val(value.toFixed(2)); - $("#rep_pen_range_counter_textgenerationwebui").val(Math.floor(value)); + $(`#${id}_counter_textgenerationwebui`).val(value); textgenerationwebui_settings[id] = value; } @@ -317,8 +316,7 @@ function setSettingByName(i, value, trigger) { else { const val = parseFloat(value); $(`#${i}_textgenerationwebui`).val(val); - $(`#${i}_counter_textgenerationwebui`).val(val.toFixed(2)); - $("#rep_pen_range_counter_textgenerationwebui").val(Math.floor(val)); + $(`#${i}_counter_textgenerationwebui`).val(val); } if (trigger) {