mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added transition on playlistheight and fixes search add bug
This commit is contained in:
@@ -6,7 +6,7 @@ function admin()
|
||||
adminTogg = !adminTogg;
|
||||
|
||||
if(adminTogg) $("#playlist").height($("#playlist").height()-210); //opening
|
||||
if(!adminTogg)setTimeout(function(){$("#playlist").height($("#playlist").height()+210);},501); //closing
|
||||
if(!adminTogg)$("#playlist").height($("#playlist").height()+210);; //closing
|
||||
|
||||
$("#adminPanel").toggleClass("hiddenAdmin");
|
||||
}
|
||||
|
||||
@@ -149,12 +149,19 @@ function submit(id,title){
|
||||
data: "v="+id+"&n="+title+"&pass="+adminpass,
|
||||
success: function() {
|
||||
|
||||
//document.getElementById("search").value = "";
|
||||
document.getElementById("search").value = "";
|
||||
$("#results").html = "";
|
||||
$(".main").removeClass("blurT");
|
||||
$("#controls").removeClass("blurT");
|
||||
//$("#search").addClass("success");
|
||||
},
|
||||
error: function(){
|
||||
|
||||
console.log("error in adding");
|
||||
document.getElementById("search").value = "";
|
||||
$("#results").html = "";
|
||||
$(".main").removeClass("blurT");
|
||||
$("#controls").removeClass("blurT");
|
||||
$("#search").addClass("error");
|
||||
}
|
||||
}).responseText;
|
||||
|
||||
Reference in New Issue
Block a user