Fix selection of sub_menu for widget (the value wasn't set)
This commit is contained in:
1 parent
5b0b8e6c79
commit
3572856486
1 file changed
+1
-1
@@ -1,6 +1,6 @@
|
||||
<% if @r_tag.eql?('sub_menu') %>
|
||||
// $('#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 %>
|
||||
$('#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 %>
|
||||
|
||||
Reference in new issue
Block a user