forked from server/soundboard
Make search reset on deletion
This commit is contained in:
parent
3776cc88ee
commit
c9a4d16bdd
@ -29,11 +29,15 @@ ready(function() {
|
|||||||
|
|
||||||
var searchfield = document.querySelector("#search");
|
var searchfield = document.querySelector("#search");
|
||||||
|
|
||||||
searchfield.addEventListener("keypress", function() {
|
searchfield.addEventListener("keyup", function() {
|
||||||
console.log("Search!");
|
console.log("Search!");
|
||||||
|
|
||||||
var buttons = document.querySelectorAll(".sound");
|
var buttons = document.querySelectorAll(".sound");
|
||||||
|
|
||||||
|
buttons.forEach(function(item) {
|
||||||
|
item.style.display = "inline-block";
|
||||||
|
});
|
||||||
|
|
||||||
buttons.forEach(function(item) {
|
buttons.forEach(function(item) {
|
||||||
var name = item.firstChild.innerHTML;
|
var name = item.firstChild.innerHTML;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user