()
| 4826 | } |
| 4827 | |
| 4828 | function wifiSurveyDelete() { |
| 4829 | const name = document.getElementById('wifi-hm-survey').value; |
| 4830 | const st = document.getElementById('wifi-hm-survey-status'); |
| 4831 | if (!name) return; |
| 4832 | fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' }, |
| 4833 | body: JSON.stringify({ action: 'delete', name }) }) |
| 4834 | .then(r => r.json()).then(d => { if (st) st.textContent = 'deleted “' + name + '”'; wifiSurveyRefresh(d); }) |
| 4835 | .catch(() => { if (st) st.textContent = 'delete failed'; }); |
| 4836 | } |
| 4837 | |
| 4838 | // ============================================================================ |
no test coverage detected