metamaps--metamaps/app/views/metacode_sets/new.html.erb
2017-10-15 10:56:51 -04:00

14 lines
310 B
Text

<div id="yield">
<div class='centerContent'>
<%= render 'form' %>
</div>
</div>
<script>
<% Metacode.all.each do |m| %>
<% if m.inMetacodeSet(@metacode_set) %>
Metamaps.Admin.selectMetacodes.push("<%= m.id %>");
<% end %>
Metamaps.Admin.allMetacodes.push("<%= m.id %>");
<% end %>
</script>