This commit is contained in:
Kasper Rynning-Tønnesen
2015-04-14 19:55:09 +02:00
parent 8a4458e764
commit ae04e06220

View File

@@ -147,7 +147,7 @@ function search(search_input){
</div>\ </div>\
</div>"; </div>";
//<input id='add' title='Add several songs' type='button' class='button' value='+' onclick=\"submit('"+data.id+"','"+video_title+"', false);\">\ //<input id='add' title='Add several songs' type='button' class='button' value='+' onclick=\"submit('"+data.id+"','"+video_title+"', false);\">\
//+data.uploader+" • "+ //+data.uploader+" • "+
//$("#results").append(finalhtml); //$("#results").append(finalhtml);
wrapper += finalhtml; wrapper += finalhtml;
@@ -186,7 +186,7 @@ function submitAndClose(id,title){
function submit(id,title,type){ function submit(id,title,type){
socket.emit("add", [id, decodeURI(title), adminpass]); socket.emit("add", [id, decodeURIComponent(title), adminpass]);
if(type){ if(type){
document.getElementById("search").value = ""; document.getElementById("search").value = "";
$("#results").html = ""; $("#results").html = "";