Martin Meyerhoff 4eec4797fa Add 500ms delay before AJAX in Select2
We have four select2 Ajax pickers in `solidus_backend`:
- Option Value Picker
- Product Picker
- Taxon Autocomplete
- Variant Autocomplete

The Variant autocomplete already has a 500ms delay between the user
finishing typing and the Ajax request firing. This is good, because it
stops requests happening at every keypress. This commit extends that
behavior to the option value, product and taxon pickers.
2025-05-30 10:43:22 +02:00
..

solidus_backend

Backend contains the controllers, views, and assets making up the admin interface of Solidus.

Assets

JavaScript

Can be found in app/assets/javascripts/spree/backend/

Any new files should be in JavaScript (ES5).

Stylesheets

Can be found in app/assets/stylesheets/spree/backend/

The stylesheets are written in SCSS and include all of Bourbon and Bootstrap 4 alpha.

When running the application there is a styleguide available at:

/admin/style_guide

Testing

Run the tests

bundle exec rspec

Run the JavaScript tests (must have ChromeDriver installed)

bundle exec teaspoon