Making find more usefull and functioning

This commit is contained in:
KasperRT
2015-03-07 04:13:46 +01:00
parent 8222d62bd9
commit e7b1cc5f78
5 changed files with 48 additions and 17 deletions

View File

@@ -5,13 +5,22 @@ function admin()
{
adminTogg = !adminTogg;
if(adminTogg)
if(find) extraHeight = 0;
else extraHeight = 30;
if(adminTogg) $("#playlist").height($("#player").height()-270+extraHeight); //opening
if(!adminTogg)$("#playlist").height($("#player").height()+extraHeight);; //closing
{
if(find)
{
eH = -10;
}else
eH = 30;
$("#playlist").height($("#player").height()-270+eH); //opening
}else if(!adminTogg)
{
if(find)
{
eH = -10;
}else
eH = 30;
$("#playlist").height($("#player").height()+eH); //closing
}
$("#adminPanel").toggleClass("hiddenAdmin");
}