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