From 35728564862b16057d413dcd1444daaa242a99e8 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 25 Feb 2013 10:35:59 +0800 Subject: [PATCH] Fix selection of sub_menu for widget (the value wasn't set) --- app/views/admin/page_parts/reload_r_tag_options.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/page_parts/reload_r_tag_options.js.erb b/app/views/admin/page_parts/reload_r_tag_options.js.erb index ff6a53815..be399a7d3 100644 --- a/app/views/admin/page_parts/reload_r_tag_options.js.erb +++ b/app/views/admin/page_parts/reload_r_tag_options.js.erb @@ -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 %>