diff --git a/simpleadmin/www/bandlock.html b/simpleadmin/www/bandlock.html index 9a9d2b6..ee02b3f 100644 --- a/simpleadmin/www/bandlock.html +++ b/simpleadmin/www/bandlock.html @@ -545,6 +545,7 @@ nrMode: null, lockedBands: null, cellState: null, + invalidCellNum: "", atCommandResponse: "", queryCommandResponse: "", lockBands() { @@ -614,6 +615,7 @@ if (this.networkMode2 === "LTE") { if (parseInt(this.cellNum) > 10) { + this.invalidCellNum = "Invalid"; this.isError = true; this.startCountdown(); console.error("Invalid frequency number."); @@ -804,7 +806,6 @@ }); }, sendAtCommand(atcmd) { - this.isLocking = true; this.isLoading = true; this.startCountdown(); console.log(atcmd); @@ -852,13 +853,14 @@ function generateFreqNumberInputs(num) { let html = ""; - for (let i = 1; i <= num; i++) { + const maxFields = Math.min(num, 10); // Limit to a maximum of 10 fields + for (let i = 1; i <= maxFields; i++) { html += `
-
- - -
+
+ + +
`; }