diff options
author | BuildTools <unconfigured@null.spigotmc.org> | 2016-12-06 17:59:59 +0100 |
---|---|---|
committer | BuildTools <unconfigured@null.spigotmc.org> | 2016-12-06 17:59:59 +0100 |
commit | 0e2ef2aa2495fa19d7cc7a25cceef58c572494ca (patch) | |
tree | 0b7aca57fbfe8066dddaa08c3c0417f97ee5e6e6 /public/javascripts/main.js | |
parent | 7574ad6e0ae42601f636919d92a5614ce94d37e6 (diff) |
.no-input is now on body
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r-- | public/javascripts/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js index 3afb896..722031d 100644 --- a/public/javascripts/main.js +++ b/public/javascripts/main.js @@ -89,7 +89,7 @@ searchNode.addEventListener('keydown', function (e) { }) searchNode.addEventListener('input', function (e) { - searchNode.className = '' + document.body.className = '' autocompleteNode.innerHTML = '' if (inputNode.value.trim() === '') return @@ -217,7 +217,7 @@ if (currentFav) { ga('send', { hitType: 'event', eventCategory: 'search fav', eventAction, eventLabel }) }) } else if (inputNode.value === '') { - searchNode.className = 'no-input' + document.body.className = 'no-input' inputNode.focus() } |