Skip to content

Instantly share code, notes, and snippets.

@RubanDenis
Created July 30, 2021 09:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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