Skip to content

Commit

Permalink
fixed not working order-by
Browse files Browse the repository at this point in the history
  • Loading branch information
eikes committed Sep 21, 2011
1 parent f722996 commit a1df9c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion facetedsearch.js
Expand Up @@ -246,7 +246,7 @@ function createFacetUI() {
var itemHtml = $(ordertemplate({'options': settings.orderByOptions}));
$(bottom).append(itemHtml);
$(settings.facetSelector).append(bottom);
$('.orderbyitem').each(function(event){
$('.orderbyitem').each(function(){
var id = this.id.substr(8);
if (settings.state.orderBy == id) {
$(this).addClass("activeorderby");
Expand All @@ -257,6 +257,7 @@ function createFacetUI() {
var id = this.id.substr(8);
settings.state.orderBy = id;
$(settings.facetSelector).trigger("facetedsearchorderby", id);
settings.state.shownResults = 0;
order();
updateResults();
});
Expand Down

0 comments on commit a1df9c7

Please sign in to comment.