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
Improve comments.
Matthew Kennedy14b691537193
diff --git a/backend/app/assets/javascripts/spree/backend/spree-select2.js b/backend/app/assets/javascripts/spree/backend/spree-select2.jsindex c9ef898301..4e574cff03 100644--- a/backend/app/assets/javascripts/spree/backend/spree-select2.js+++ b/backend/app/assets/javascripts/spree/backend/spree-select2.js@@ -1,12 +1,11 @@document.addEventListener('DOMContentLoaded', function() {- // Inititate a standard Select2 on any select element with the class .select2+ // Initiate a standard Select2 on any select element with the class .select2// Remember to add a place holder in the HTML as needed.$('select.select2').select2()- // Inititate a Select2 with the option to clear, on any select element with the class .select2-clear- // Set: include_blank: true in your ERB.- // A placeholder is auto added here as it is required to clear the Select2- // If a custom placeholder is required, you will need to set up a custom instance.+ // Initiate a Select2 with the option to clear, on any select element with the class .select2-clear+ // Set: include_blank: true in the ERB.+ // A placeholder is auto-added here as it is required to clear the Select2.$('select.select2-clear').select2({placeholder: Spree.translations.select_an_option,allowClear: true