(ports)
| 4311 | if (!name) return; |
| 4312 | fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' }, |
| 4313 | body: JSON.stringify({ action: 'load', name }) }) |
| 4314 | .then(r => r.json()).then(d => { |
| 4315 | if (d.error) { if (st) st.textContent = '⚠ ' + d.error; return; } |
| 4316 | if (st) st.textContent = 'loaded “' + name + '”'; |
| 4317 | wifiHeatmapLoad(); |
| 4318 | }).catch(() => { if (st) st.textContent = 'load failed'; }); |
| 4319 | } |
| 4320 | |
| 4321 | function wifiSurveyDelete() { |
| 4322 | const name = document.getElementById('wifi-hm-survey').value; |
| 4323 | const st = document.getElementById('wifi-hm-survey-status'); |
| 4324 | if (!name) return; |
| 4325 | fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' }, |
no test coverage detected