diff --git a/app/views/layouts/_lightboxes.html.erb b/app/views/layouts/_lightboxes.html.erb index 2ca08179..d464b733 100644 --- a/app/views/layouts/_lightboxes.html.erb +++ b/app/views/layouts/_lightboxes.html.erb @@ -106,11 +106,7 @@
Choose Your Metacodes
<% @list = '' %> + <% metacodesInUse = user_metacodes() %> <% Metacode.order("name").all.each_with_index do |m, index| %> - <% if selectedSet == "custom" %> - <% mClass = metacodes.index(m.id.to_s) == nil ? "toggledOff" : "" %> - <% else %> - <% mClass = "toggledOff" %> - <% end %> + <% mClass = metacodesInUse.index(m) == nil ? "toggledOff" : "" %> <% @list += '' + m.name.downcase + '
Use metacode sets to enter different modes of mapping.
- -' + m.name.downcase + '
' + m.name.downcase + '
' + m.name.downcase + '
Choose Your Metacodes
- <% @list = '' %> - <% metacodesInUse = user_metacodes() %> - <% Metacode.order("name").all.each_with_index do |m, index| %> - <% mClass = metacodesInUse.index(m) == nil ? "toggledOff" : "" %> - <% @list += '' + m.name.downcase + '