metamaps--metamaps/app/views/metacode_sets/new.html.erb

14 lines
302 B
Text
Raw Permalink Normal View History

2014-09-16 01:57:34 +00:00
<div id="yield">
<div class='blackBox'>
<%= render 'form' %>
</div>
</div>
<script>
<% Metacode.all.each do |m| %>
<% if m.inMetacodeSet(@metacode_set) %>
2014-09-16 01:57:34 +00:00
Metamaps.Admin.selectMetacodes.push("<%= m.id %>");
<% end %>
2014-09-16 01:57:34 +00:00
Metamaps.Admin.allMetacodes.push("<%= m.id %>");
<% end %>
</script>