Currently, the page is re-loaded each time one end of the slider is moved. Obviously this has a rather large performance impact.
Filing this as a bug report as I assume that, given the presence of a 'Go' button, this is not expected behaviour (please correct me if I'm wrong).
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 1122534-6.patch | 5.38 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedI'll turn this into a feature request. We can make this optional ("auto-submit on/off"). I'm thinking of adding extra block config settings to tweak individual sliders.
Was actually intended like that. Slider submits itself with jQuery after you "let go" of a slider handle. Go button is there for non-JS behaviour.
Comment #2
sammyd56 commentedA toggle for Auto-submit off/on would be a good feature. I've now decided that I do in fact like the auto-submit; albeit with a longer timeout. Perhaps timeout could also be made configurable from the configuration screen. Fantastic work on this module by the way, many thanks and congratulations.
Comment #3
Anonymous (not verified) commentedI'm thinking of replace the hardcoded values with things like
With variable_set() calls in the .install file. So then you can override them in code at least.
Comment #4
Anonymous (not verified) commentedAfter the move to Facet API is complete, this can be an easy setting in the Facet widget's display configuration.
Comment #5
kevster commentedIm having trouble trying to see an auto-submit version? I have a version working with the 'go' button but cant see any settings anywhere that I can set to have an ajax style slider?
Im running:
D7.14, Search API 7.x-1.0, Search facets 7.x-1.0, Facet API 7.x-1.0-rc4+4-dev, Search ranges 7.x-1.x-dev
Ive cleared caches etc? Maybe Ive not upgraded a module properly?
Many thx for great module and appreciate any pointers..
Comment #6
Anonymous (not verified) commented@#5 there's an auto-submit in search_api_ranges, hardcoded 1500 milliseconds in function delaySubmit().
Attached patch has the solution - you can now go to your "Configure facet display" to configure the value. Default 1500 (ms), but you can override. Leave empty or set to 0 to disable.
Patch includes code cleanup. Committed to devx.
http://drupalcode.org/project/search_api_ranges.git/commit/f220435