Skip to content

Commit

Permalink
I've put an event handler on input. When the input value is an empty …
Browse files Browse the repository at this point in the history
…string than we just hide "search-results" with JQuery ".hide()"
  • Loading branch information
avalan4e57 committed Jul 28, 2017
1 parent bc83d6f commit b1f4f74
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/everything.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,13 @@ $(function() {
$("#demo").hide();
}

// Reverts to Home when there is no text in input
$("#v").on("input", function() {
if ($("#v").val() === "") {
$("#search-results").hide();
}
});

$("input[name='toggleRepeat']").change(function() {
ZenPlayer.isRepeat = $(this).is(":checked");
});
Expand Down

0 comments on commit b1f4f74

Please sign in to comment.