mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 03:56:27 +01:00
Fixes mechfab manufacturers
This commit is contained in:
@@ -100,7 +100,11 @@
|
||||
data["category"] = category
|
||||
data["categories"] = categories
|
||||
if(all_robolimbs)
|
||||
data["manufacturers"] = all_robolimbs
|
||||
var/list/T = list()
|
||||
for(var/A in all_robolimbs)
|
||||
var/datum/robolimb/R = all_robolimbs[A]
|
||||
T += list(list("id" = A, "company" = R.company))
|
||||
data["manufacturers"] = T
|
||||
data["manufacturer"] = manufacturer
|
||||
data["materials"] = get_materials()
|
||||
data["maxres"] = res_max_amount
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
{{if data.manufacturers}}
|
||||
<div class="item">
|
||||
{{for data.manufacturers}}
|
||||
{{:helper.link(value, null, {'manufacturer' : value}, value == data.manufacturer ? 'selected' : null)}}
|
||||
{{:helper.link(value.company, null, {'manufacturer' : value.id}, value.id == data.manufacturer ? 'selected' : null)}}
|
||||
{{/for}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
Reference in New Issue
Block a user