2012-04-23 18:30:40 +00:00
|
|
|
<% if @r_tag.eql?('sub_menu') %>
|
2012-05-08 20:15:45 +00:00
|
|
|
// $('#name_list select').html("<%= j options_for_select(t(:horizontal) => :horizontal, t(:vertical) => :vertical) %>")
|
2013-02-25 02:35:59 +00:00
|
|
|
$('#name_list').html("<%= j hidden_field_tag 'page_part[public_r_tag_object_id]', @part.page.id %>")
|
2013-02-23 08:52:37 +00:00
|
|
|
<% elsif @tag_objects %>
|
|
|
|
$('#name_list').html("<%= j select_tag 'page_part[public_r_tag_object_id]', options_from_collection_for_select(@tag_objects, :id, :title, :selected => @part.public_r_tag_object_id) %>")
|
2012-04-23 18:30:40 +00:00
|
|
|
<% else %>
|
2013-02-23 08:52:37 +00:00
|
|
|
$('#name_list').empty()
|
2012-04-23 18:30:40 +00:00
|
|
|
<% end %>
|