Fix selection of sub_menu for widget (the value wasn't set)
This commit is contained in:
parent
5b0b8e6c79
commit
3572856486
|
@ -1,6 +1,6 @@
|
||||||
<% if @r_tag.eql?('sub_menu') %>
|
<% if @r_tag.eql?('sub_menu') %>
|
||||||
// $('#name_list select').html("<%= j options_for_select(t(:horizontal) => :horizontal, t(:vertical) => :vertical) %>")
|
// $('#name_list select').html("<%= j options_for_select(t(:horizontal) => :horizontal, t(:vertical) => :vertical) %>")
|
||||||
$('#name_list').html("<%= j hidden_field_tag 'page_part[public_r_tag_object_id]', :value => @part.page.id %>")
|
$('#name_list').html("<%= j hidden_field_tag 'page_part[public_r_tag_object_id]', @part.page.id %>")
|
||||||
<% elsif @tag_objects %>
|
<% 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) %>")
|
$('#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) %>")
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
Reference in New Issue