Merge pull request #2996 from coopdevs/update-products-new-js-template

[Spree Upgrade] Bring Spree changes on admin/products/new.js.erb
This commit is contained in:
Luis Ramos
2018-11-08 12:13:47 +00:00
committed by GitHub

View File

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