diff --git a/src/main/resources/static/js/music.js b/src/main/resources/static/js/music.js index 87bda33..34ff078 100644 --- a/src/main/resources/static/js/music.js +++ b/src/main/resources/static/js/music.js @@ -26,9 +26,7 @@ $(document).ready(function () { btn_flush = $('#flush_btn'); btn_add = $('#add_btn'); switchAutoFlow = $("#autoflow"); - $("form").submit(function(e) { - e.preventDefault(); - }); + setInterval("getCurentMusic()", 1000); @@ -512,6 +510,10 @@ function listeners() { }); $('#btn_search').click(search); + $("form").submit(function(e) { + e.preventDefault(); + search(); + }); $('#btn_next').click(function () { sendCommand({command: "NEXT"}); diff --git a/src/main/resources/templates/music.html b/src/main/resources/templates/music.html index b645aca..92ca46b 100644 --- a/src/main/resources/templates/music.html +++ b/src/main/resources/templates/music.html @@ -193,7 +193,7 @@
- +