From 0d6598cdd22d0d734f8f71f27f62d8d9856fe984 Mon Sep 17 00:00:00 2001 From: Robert Nowakowski Date: Fri, 22 Nov 2019 14:26:35 +0100 Subject: [PATCH] [SD-581] Fixes filters/sorting menus not opening on mobile --- .../javascripts/spree/frontend/views/spree/products/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/assets/javascripts/spree/frontend/views/spree/products/index.js b/frontend/app/assets/javascripts/spree/frontend/views/spree/products/index.js index 74bba7c68ad..daa0d2114d4 100644 --- a/frontend/app/assets/javascripts/spree/frontend/views/spree/products/index.js +++ b/frontend/app/assets/javascripts/spree/frontend/views/spree/products/index.js @@ -1,4 +1,4 @@ -$(function() { +Spree.ready(function($) { $('#sort-by-overlay-show-button').click(function() { $('#sort-by-overlay').show() }) $('#sort-by-overlay-hide-button').click(function() { $('#sort-by-overlay').hide() })