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).

CommentFileSizeAuthor
#6 1122534-6.patch5.38 KBAnonymous (not verified)

Comments

Anonymous’s picture

Category: bug » feature

I'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.

sammyd56’s picture

A 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.

Anonymous’s picture

I'm thinking of replace the hardcoded values with things like

Drupal.settings.search_api_ranges.timeout

With variable_set() calls in the .install file. So then you can override them in code at least.

Anonymous’s picture

After the move to Facet API is complete, this can be an easy setting in the Facet widget's display configuration.

kevster’s picture

Im 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..

Anonymous’s picture

Status: Active » Fixed
StatusFileSize
new5.38 KB

@#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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.