(value)
| 4112 | |
| 4113 | function wifiSurveySave() { |
| 4114 | const name = (document.getElementById('wifi-hm-survey-name').value || '').trim(); |
| 4115 | const st = document.getElementById('wifi-hm-survey-status'); |
| 4116 | if (!name) { if (st) st.textContent = 'name it first'; return; } |
| 4117 | fetch('/api/net/wifi/surveys', { method: 'POST', headers: { 'Content-Type': 'application/json' }, |
| 4118 | body: JSON.stringify({ action: 'save', name }) }) |
| 4119 | .then(r => r.json()).then(d => { |
| 4120 | if (d.error) { if (st) st.textContent = '⚠ ' + d.error; return; } |
| 4121 | if (st) st.textContent = 'saved “' + name + '”'; |
| 4122 | document.getElementById('wifi-hm-survey-name').value = ''; |
no test coverage detected