/js-tygh-product_filters.js.diff Secret
Created
July 30, 2021 09:09
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/tygh/product_filters.js b/js/tygh/product_filters.js | |
index f8e247ad92..7776ce4b36 100644 | |
--- a/js/tygh/product_filters.js | |
+++ b/js/tygh/product_filters.js | |
@@ -354,6 +354,9 @@ | |
// re-init filters | |
$.ceEvent('on', 'ce.commoninit', function (context) { | |
var $productFilters = $('.cm-product-filters', context); | |
+ | |
+ initSlider(context); | |
+ | |
if (!$productFilters.length) { | |
return; | |
} | |
@@ -371,8 +374,6 @@ | |
restoreFilteredTablesState(context); | |
restoreCursorState(); | |
- initSlider(context); | |
- | |
var $color_filter_selectors = context.find('[data-cm-product-color-filter="true"]:has(.cm-product-filters-checkbox:enabled)'); | |
if ($color_filter_selectors.length) { | |
$color_filter_selectors.on('click touch', function (e) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment