This patch gives support for the new checkbox facet feature in Apache Solr 6.x-2.0+.
Two functions were added to apachesolr.js to support the new checkboxes: Drupal.apachesolr.addCheckbox and Drupal.apachesolr.makeCheckbox. These functions made the checkboxes work by adding a click handler that would set window.location.href. This patch overrides those two functions in apachesolr_ajax.js and changes the click handler to Drupal.apachesolr_ajax.navigate() instead.
Cheers,
fn
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 911702.patch | 1.58 KB | jpmckinney |
| checkbox_fix.patch | 1.03 KB | wintersieck |
Comments
Comment #1
jpmckinney commentedCommitted the following patch to match the current API.
Comment #2
jpmckinney commentedOops, that patch was for the wrong branch. I've fixed it in HEAD, too, now.