Resole auto refresh bug for search

This commit is contained in:
Sebastien 2018-11-22 01:35:45 +02:00
parent 0a5721ba5b
commit f206bb5177
2 changed files with 6 additions and 4 deletions

View File

@ -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"});

View File

@ -193,7 +193,7 @@
<label for="input_search">Search</label>
</div>
<div class="input-field col l2 m2 s2" style="margin-top: 22px">
<button class="btn waves-effect waves-light green darken-4 white-text" id="btn_search"><i class="material-icons">search</i></button>
<button class="btn waves-effect waves-light green darken-4 white-text" id="btn_search" type="button"><i class="material-icons">search</i></button>
</div>
</div>