Added errorBar on error

This commit is contained in:
Kasper Rynning-Tønnesen
2015-02-06 12:51:45 +01:00
parent c12f471be0
commit 86c61f021c
4 changed files with 15 additions and 2 deletions

View File

@@ -113,7 +113,8 @@ function vote(id, vote){
if(serverAns == "wrong")
{
alert("Wrong adminpassword!");
//alert("Wrong adminpassword!");
$("#eBar").addClass("opacityFull");
}else{
if(vote=="pos" && serverAns != "many"){ $("."+id).addClass("success");}
else{ $("."+id).addClass("fadeerror");}
@@ -123,6 +124,7 @@ function vote(id, vote){
setTimeout(function(){
$("."+id).removeClass("success");
$("."+id).removeClass("fadeerror");
$("#eBar").removeClass("opacityFull");
},1500);
}