2013-01-01 22:45:35 +00:00
|
|
|
<%= form_for Topic.new, url: topics_url, remote: true do |form| %>
|
2014-06-04 19:24:16 +00:00
|
|
|
<div class="openMetacodeSwitcher openLightbox" data-open="switchMetacodes"></div>
|
2013-01-26 01:49:40 +00:00
|
|
|
<div id="metacodeImg">
|
2015-09-19 12:17:56 +00:00
|
|
|
<% @metacodes = user_metacodes() %>
|
|
|
|
<% set = get_metacodeset() %>
|
2014-02-03 05:35:21 +00:00
|
|
|
<% @metacodes.each do |metacode| %>
|
2014-10-17 01:03:11 +00:00
|
|
|
<img class="cloudcarousel" width="40" height="40" src="<%= metacode.icon %>" alt="<%= metacode.name %>" title="<%= metacode.name %>" data-id="<%= metacode.id %>" />
|
2013-01-26 01:49:40 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2014-02-01 08:57:19 +00:00
|
|
|
<%= form.text_field :name, :maxlength => 140, :placeholder => "title..." %>
|
2012-12-25 23:29:20 +00:00
|
|
|
<div id="metacodeImgTitle"></div>
|
|
|
|
<div class="clearfloat"></div>
|
2014-06-04 19:24:16 +00:00
|
|
|
<script>
|
|
|
|
<% @metacodes.each do |metacode| %>
|
|
|
|
<% if !set %>
|
2014-07-29 17:34:10 +00:00
|
|
|
Metamaps.Create.selectedMetacodes.push("<%= metacode.id %>");
|
|
|
|
Metamaps.Create.newSelectedMetacodes.push("<%= metacode.id %>");
|
|
|
|
Metamaps.Create.selectedMetacodeNames.push("<%= metacode.name %>");
|
|
|
|
Metamaps.Create.newSelectedMetacodeNames.push("<%= metacode.name %>");
|
2014-06-04 19:24:16 +00:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</script>
|
2012-10-26 10:04:52 +00:00
|
|
|
<% end %>
|