QuintinAdam / spree_flexi_variants

Spree extension to create product variants as-needed. Spree 3.0+
https://github.com/QuintinAdam/spree_flexi_variants
BSD 3-Clause "New" or "Revised" License
27 stars 38 forks source link

Change $(document).ready to Spree.ready #7

Closed piotr-radzikowski closed 8 years ago

piotr-radzikowski commented 8 years ago

Change $(document).ready to Spree.ready - to save compatibility with turbolinks

Change content_for_head (javascript operations) to content_for_body_javascript - turbolinks inject only head title and body. "add_flexi_variants_javascript_body_yield" is override for store javascript into body becouse turbolinks inject only body without head content

QuintinAdam commented 8 years ago

Awesome! Thanks for this! Pushed this to the 3-1-stable branch.