Adds an alert prompt to the delay_round_end (#18135)

* Adds an alert prompt to the delay_round_end

* why is there two buttons that do the same thing?
This commit is contained in:
MadmanMartian
2018-04-22 21:38:47 +01:00
committed by jknpj
parent caf4d7d430
commit 65525d7d5a
2 changed files with 6 additions and 1 deletions

View File

@@ -459,7 +459,9 @@
else if(href_list["delay_round_end"])
if(!check_rights(R_SERVER))
return
var/response = alert("Toggle round end delay? It is currently [ticker.delay_end?"delayed":"not delayed"]","Toggle round end delay","Yes","No")
if(response != "Yes")
return
ticker.delay_end = !ticker.delay_end
log_admin("[key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
message_admins("<span class='notice'>[key_name(usr)] [ticker.delay_end ? "delayed the round end" : "has made the round end normally"].</span>", 1)