MCPcopy Create free account
hub / github.com/RocketMap/RocketMap / updateSearchStatus

Function updateSearchStatus

static/js/map.js:251–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 $.post(searchControlURI + '?action=' + encodeURIComponent(action))
250}
251function updateSearchStatus () {
252 $.getJSON(searchControlURI).then(function (data) {
253 $('#search-switch').prop('checked', data.status)
254 })
255}
256
257function initSidebar () {
258 $('#gyms-switch').prop('checked', Store.get('showGyms'))

Callers 1

initSidebarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected