mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Added errorBar on error
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user