diff --git a/js/list.js b/js/list.js index ca3bee20..410c0ed3 100755 --- a/js/list.js +++ b/js/list.js @@ -80,6 +80,7 @@ function vote(id, vote){ console.log("voted "+vote+" on "+id); if(vote=="pos"){ $("#playlist").addClass("success");} else{ $("#playlist").addClass("error");} + updateList(); }, }).responseText); setTimeout(function(){ @@ -97,6 +98,7 @@ function skip(){ success: function() { console.log("voted to skip song"); $("#buttons").addClass("success"); + updateList(); }, }).responseText); setTimeout(function(){ diff --git a/js/search.js b/js/search.js index e02760cb..3aa94df6 100755 --- a/js/search.js +++ b/js/search.js @@ -80,6 +80,7 @@ $(document).ready(function() document.getElementById("search").value = ""; $("#search").addClass("success"); $("#results").html(''); + updateList(); }, error: function(){ console.log("error in adding");