mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-19 04:08:55 +01:00
[MIRROR] Encode changes (#11301)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5e6a4639d0
commit
4e2361f8df
@@ -112,7 +112,7 @@ var/warrant_uid = 0
|
||||
var/namelist = list()
|
||||
for(var/datum/data/record/t in GLOB.data_core.general)
|
||||
namelist += t.fields["name"]
|
||||
var/new_name = sanitize(tgui_input_list(ui.user, "Please input name:", "Name Choice", namelist))
|
||||
var/new_name = tgui_input_list(ui.user, "Please input name:", "Name Choice", namelist)
|
||||
if(tgui_status(ui.user, state) == STATUS_INTERACTIVE)
|
||||
if (!new_name)
|
||||
return
|
||||
@@ -120,7 +120,7 @@ var/warrant_uid = 0
|
||||
|
||||
if("editwarrantnamecustom")
|
||||
. = TRUE
|
||||
var/new_name = sanitize(tgui_input_text(ui.user, "Please input name"))
|
||||
var/new_name = tgui_input_text(ui.user, "Please input name", max_length = MAX_MESSAGE_LEN)
|
||||
if(tgui_status(ui.user, state) == STATUS_INTERACTIVE)
|
||||
if (!new_name)
|
||||
return
|
||||
@@ -128,7 +128,7 @@ var/warrant_uid = 0
|
||||
|
||||
if("editwarrantcharges")
|
||||
. = TRUE
|
||||
var/new_charges = sanitize(tgui_input_text(ui.user, "Please input charges", "Charges", activewarrant.fields["charges"]))
|
||||
var/new_charges = tgui_input_text(ui.user, "Please input charges", "Charges", activewarrant.fields["charges"], max_length = MAX_MESSAGE_LEN)
|
||||
if(tgui_status(ui.user, state) == STATUS_INTERACTIVE)
|
||||
if (!new_charges)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user