metamaps--metamaps/app/views/metacode_sets/new.html.erb
2014-09-15 21:57:34 -04:00

14 lines
No EOL
302 B
Text

<div id="yield">
<div class='blackBox'>
<%= 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>