Commit a1ae0978a1ed3a4c2e46617fe4285985948d0e8e
1 parent
82e063b5
Exists in
staging
and in
42 other branches
Update form_for and javascript_tag syntax
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/manage_products/_add_input.html.erb
1 | <div id='request_result_message' style='display: none'></div> | 1 | <div id='request_result_message' style='display: none'></div> |
2 | 2 | ||
3 | -<%= form_for(@input, | 3 | +<%= form_for(:input, |
4 | :url => {:action => 'add_input', :id => @product}, | 4 | :url => {:action => 'add_input', :id => @product}, |
5 | :html => {:method => 'post', :id => 'input-category-form'} | 5 | :html => {:method => 'post', :id => 'input-category-form'} |
6 | ) do |f| %> | 6 | ) do |f| %> |
app/views/manage_products/_categories_for_selection.html.erb
1 | <%= select_for_categories(categories, level) %> | 1 | <%= select_for_categories(categories, level) %> |
2 | 2 | ||
3 | -<% javascript_tag do %> | 3 | +<%= javascript_tag do %> |
4 | jQuery('#categories_container_wrapper').scrollTo('100%', 1000) | 4 | jQuery('#categories_container_wrapper').scrollTo('100%', 1000) |
5 | $('selected_category_id').value = <%= @category && @category.id %> | 5 | $('selected_category_id').value = <%= @category && @category.id %> |
6 | $('hierarchy_navigation').update('<%= escape_javascript(hierarchy_category_navigation(@category, :make_links => true)) %>') | 6 | $('hierarchy_navigation').update('<%= escape_javascript(hierarchy_category_navigation(@category, :make_links => true)) %>') |