Fix new_product div in new product page

This commit is contained in:
luisramos0
2018-12-08 14:53:50 +00:00
parent 7ecce51b8b
commit 8fb103ce8d

View File

@@ -1,5 +1,5 @@
<%# This chunk is just a copy of Spree's backend/app/views/spree/admin/products/new.js.erb %>
$("#new_product_wrapper").html('<%= escape_javascript(render :template => "spree/admin/products/new", :formats => [:html], :handlers => [:haml]) %>');
$("#new_product").html('<%= escape_javascript(render :template => "spree/admin/products/new", :formats => [:html], :handlers => [:haml]) %>');
handle_date_picker_fields();
<% unless Rails.env.test? %>
$('.select2').select2();