(action)
| 246 | |
| 247 | var searchControlURI = 'search_control' |
| 248 | function searchControl (action) { |
| 249 | $.post(searchControlURI + '?action=' + encodeURIComponent(action)) |
| 250 | } |
| 251 | function updateSearchStatus () { |
| 252 | $.getJSON(searchControlURI).then(function (data) { |
| 253 | $('#search-switch').prop('checked', data.status) |