alessandro trinca tornidor
commited on
Commit
·
fcb80e0
1
Parent(s):
4614287
fix: avoid error on checking id-input-webserver-wordfreq-checkbox
Browse files- static/index.js +3 -4
static/index.js
CHANGED
|
@@ -1000,10 +1000,9 @@ async function updateWordsFreqIfPressEnter() {
|
|
| 1000 |
}
|
| 1001 |
|
| 1002 |
function toggleWebserverCheckbox() {
|
| 1003 |
-
document.getElementById(
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
}
|
| 1007 |
}
|
| 1008 |
|
| 1009 |
function handleMobileWindow() {
|
|
|
|
| 1000 |
}
|
| 1001 |
|
| 1002 |
function toggleWebserverCheckbox() {
|
| 1003 |
+
const checked = document.getElementById("id-input-webserver-wordfreq-checkbox").checked
|
| 1004 |
+
document.getElementById('id-input-webserver-wordfreq').disabled=!checked;
|
| 1005 |
+
document.getElementById('id-wordfreq-show-analyzer').innerText=checked?'webserver':'embedded';
|
|
|
|
| 1006 |
}
|
| 1007 |
|
| 1008 |
function handleMobileWindow() {
|