MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / escapeSelector

Function escapeSelector

web/scripts/ragnar_modern.js:4114–4119  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4112
4113function 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 = '';

Callers 1

updateHostInTableFunction · 0.70

Calls 1

escapeMethod · 0.80

Tested by

no test coverage detected