Fixes mechfab manufacturers

This commit is contained in:
Kelenius
2015-08-17 10:42:27 +03:00
parent 3b1c5666d5
commit 8fcd18157e
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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
+1 -1
View File
@@ -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}}