Closed (fixed)
Project:
Ajax facets
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2017 at 17:21 UTC
Updated:
31 Jan 2018 at 17:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jojonaloha commentedComment #3
jojonaloha commentedAttached patch adds back the
total_resultsandupdate_resultsto the api response. It also adds theDrupal.ajax_facets.showTooltipjavascript function and call. I haven't fully tested the javascript as our custom javascript overrides some of that, but I am not getting any javascript warnings.Comment #4
eugene.ilyin commentedHello
I thought that this functionality is useless and I removed it. But seems people need it.
I returned it back, but with some corrections.
Now there is no setting "Update results". Instead of it, the tooltip will be displayed when the block with ajax facets buttons is available on the current page. Because when this block is active, then search results will not be updated until the user will click "Submit button". And makes sense to show the tooltip with a total count of found items.
Comment #6
eugene.ilyin commentedDone.
Comment #7
eugene.ilyin commentedComment #9
narkoff commentedI do not understand why, but this commit - specifically this chunk - causes range sliders widget to break with error
Uncaught ReferenceError: $this is not definedat Object.Drupal.ajax_facets.processSlider.Reverting just this chunk fixes issue.