Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix delete menu item jQuery fadeOut.
Matthew Kennedy96e6450aa815
diff --git a/backend/app/assets/javascripts/spree/backend/admin.js b/backend/app/assets/javascripts/spree/backend/admin.jsindex 9a9e871fdc..6375a4a1a2 100644--- a/backend/app/assets/javascripts/spree/backend/admin.js+++ b/backend/app/assets/javascripts/spree/backend/admin.js@@ -65,7 +65,7 @@ $(document).ready(function() {el.parents('tr').fadeOut('hide', function() {$(this).remove()})- el.parents('div.menu-item').fadeOut('hide', function() {+ el.closest('div.menu-item').fadeOut('hide', function() {$(this).remove()})}diff --git a/backend/app/views/spree/admin/menus/edit.html.erb b/backend/app/views/spree/admin/menus/edit.html.erbindex 655a498fb9..7083b01e35 100644--- a/backend/app/views/spree/admin/menus/edit.html.erb+++ b/backend/app/views/spree/admin/menus/edit.html.erb@@ -43,10 +43,6 @@<%= build_menu_item(@menu, item) %><% end %><% end %>-- <%# @menu.menu_items.each_with_level(@menu.menu_items.root.self_and_descendants) do |item, level| %>- <%#= build_menu_item(@menu, item) %>- <%# end %></div></div></div>