Created
July 21, 2021 16:07
-
-
Save mecmartini/5e3ae1f69a4b2864cf84840c6411fe9e to your computer and use it in GitHub Desktop.
ajax-facets-do-not-support-range-slider.patch
This file contains hidden or 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/facets-views-ajax.js b/js/facets-views-ajax.js | |
| index e0e4f2c..7d9f7ea 100644 | |
| --- a/js/facets-views-ajax.js | |
| +++ b/js/facets-views-ajax.js | |
| @@ -39,10 +39,10 @@ | |
| // Update view on summary block click. | |
| if (updateFacetsSummaryBlock() && (facetId === 'facets_summary_ajax')) { | |
| - $('[data-drupal-facets-summary-id=' + facetSettings.facets_summary_id + ']').children('ul').children('li').once().click(function (e) { | |
| + $('[data-drupal-facets-summary-id=' + facetSettings.facets_summary_id + ']').find('a').once('facets_summary_ajax_link').click(function (e) { | |
| e.preventDefault(); | |
| var facetLink = $(this).find('a'); | |
| - updateFacetsView(facetLink.attr('href'), current_dom_id, view_path); | |
| + updateFacetsView($(this).attr('href'), current_dom_id, view_path); | |
| }); | |
| } | |
| // Update view on facet item click. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment