Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've created a module called Facets Range Input. Code is mostly inspired by the range slider sub-module. Currently, it requires the attached patch to work properly.
Module page for range input: https://www.drupal.org/project/facets_range_input
Is there a way to plug into the js api for modules like this?
Comment | File | Size | Author |
---|---|---|---|
#12 | 3034918-12.patch | 504 bytes | dench0 |
#4 | add-range-input-view-update-3034918.patch | 595 bytes | alexandersluiter |
Comments
Comment #2
borisson_This looks really cool!
A novice could upload a patch here to add this project to the readme.txt, similar to what happened over in #3006950.
Comment #3
alexandersluiter CreditAttribution: alexandersluiter commentedNo need for any of the other patches now that the Javascript API is coming together. This small patch is all that's needed in order to tell the JS API to skip updating the range input form blocks.
Comment #4
alexandersluiter CreditAttribution: alexandersluiter commentedComment #5
borisson_Ok so that means we're probably should commit this small change. I will create a new issue for the readme.txt update.
Comment #6
borisson_Go testbot, go!
Comment #7
borisson_The readme update can go in #3054542: Add documentation about the facets_range_input module
Comment #8
geek-merlinComment #9
heddnBump
Comment #11
borisson_@heddn: Was that a reminder to commit this, or something else? Setting to rtbc is a more effective indicator of that.
In any case, I totally forgot about this issue. I committed #4.
Comment #12
dench0 CreditAttribution: dench0 commentedThe last commit can break view ajax executing if
drupalSettings.facets
isundefined
.For example, on page exist only
List of links
widget withsoft_limit = 0
. In this casedrupalSettings.facets
is absent and this checking will trow aTypeError
with message"settings.facets is undefined"
.Comment #14
borisson_