From 9e7c4708ee55c22e7cf77d59db49eba97368ca9a Mon Sep 17 00:00:00 2001 From: Marc Foley Date: Mon, 16 Jun 2025 15:18:26 +0100 Subject: [PATCH] tags.html: only allow tag scores in range 1-100 --- .ci/tags.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.ci/tags.html b/.ci/tags.html index a6aa06f81..e26ce9370 100644 --- a/.ci/tags.html +++ b/.ci/tags.html @@ -630,6 +630,10 @@ function axesCombos(axes) { AddFamily() { this.isEdited = true; const fonts = document.getElementById("fonts") + if (this.variableTag === false && ((this.newWeight) < 1 || Number(this.newWeight) > 100)) { + alert("Please enter a valid weight (1-100)"); + return; + } if (this.newAxes.length > 0) { const solved = axesCombos(this.newAxes); for(let i=0; i