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

CommentFileSizeAuthor
#1 911702.patch1.58 KBjpmckinney
checkbox_fix.patch1.03 KBwintersieck

Comments

jpmckinney’s picture

Status: Needs review » Fixed
StatusFileSize
new1.58 KB

Committed the following patch to match the current API.

jpmckinney’s picture

Oops, that patch was for the wrong branch. I've fixed it in HEAD, too, now.

Status: Fixed » Closed (fixed)

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