mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Bring Spree changes on admin/products/new.js.erb
We copied it from Spree to then append a little change on it. Since the original version changed in Spree 2.0 we need to update our copy.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user