mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Voting cancelling clarification (#31556)
* Voting cancelling clarification * logs * Update voting.dm
This commit is contained in:
@@ -467,6 +467,10 @@ var/global/datum/controller/vote/vote = new()
|
||||
return 0
|
||||
if("cancel")
|
||||
if(usr.client.holder)
|
||||
if(alert("Are you sure you want to cancel this vote? This will not display the results, and for a map vote, re-use the current map.","Confirm","Yes","No") != "Yes")
|
||||
return
|
||||
log_admin("[key_name(usr)] has cancelled a vote currently taking place. Vote type: [mode], question, [question].")
|
||||
message_admins("[key_name(usr)] has cancelled a vote currently taking place. Vote type: [mode], question, [question].")
|
||||
reset()
|
||||
update()
|
||||
currently_voting = FALSE
|
||||
|
||||
@@ -13,7 +13,7 @@ function clearAll(){
|
||||
clearallup += 1;
|
||||
$("#vote_main").empty();
|
||||
$("#vote_choices").empty();
|
||||
$("#vote_admin").html("<br />(<a href='?src="+hSrc+";vote=cancel;'>Cancel Vote</a>)");
|
||||
$("#vote_admin").html("<br />(<a href='?src="+hSrc+";vote=cancel;'>Abort the current vote.</a>)");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user