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);
|
||||
}
|
||||
|
||||
|
||||
@@ -200,8 +200,9 @@ function submit(id,title,type){
|
||||
|
||||
if(serverAns == "wrong")
|
||||
{
|
||||
alert("Wrong adminpassword");
|
||||
//alert("Wrong adminpassword");
|
||||
$("#search").addClass("error");
|
||||
$("#eBar").addClass("opacityFull");
|
||||
}else{
|
||||
$("#search").addClass("success");
|
||||
}
|
||||
@@ -211,6 +212,7 @@ function submit(id,title,type){
|
||||
setTimeout(function(){
|
||||
$("#search").removeClass("success");
|
||||
$("#search").removeClass("error");
|
||||
$("#eBar").removeClass("opacityFull");
|
||||
},1500);
|
||||
updateList();
|
||||
event.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user