[MIRROR] Encode changes (#11301)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-04 16:23:19 -07:00
committed by GitHub
parent 5e6a4639d0
commit 4e2361f8df
202 changed files with 370 additions and 408 deletions
@@ -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