mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Added list refresh and query when user does an action
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user