Skip to content

Instantly share code, notes, and snippets.

@bramstroker
Last active August 29, 2015 14:06
Show Gist options
  • Save bramstroker/e36716c570f3c5ba6cba to your computer and use it in GitHub Desktop.
Save bramstroker/e36716c570f3c5ba6cba to your computer and use it in GitHub Desktop.
var self = this;
$.each(this.filters, function(index, filter) {
filter.label = (self.labels[filter.field] && self.labels[filter.field][filter.value]) ?
self.labels[filter.field][filter.value] :
filter.value;
AjaxSolr.theme(
'activeFilterListItem',
filter,
function() {
self.removeFilter.call(self, filter);
}
).appendTo(list);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment