Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #174 from eDifference/bug/fix-sorting-plp
Browse files Browse the repository at this point in the history
fix(sorting-plp): Remove parent selector
  • Loading branch information
stijnbernards authored Aug 9, 2021
2 parents 0d552f1 + 630e121 commit 6f42d1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions view/frontend/web/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ define([
var hasForm = $(this.options.filterFormSelector).length > 0;
this.options.ajaxFilters = this.options.ajaxFilters && hasForm;

this._bind(element.find(options.modeControl), options.mode, options.modeDefault);
this._bind(element.find(options.directionControl), options.direction, options.directionDefault);
this._bind(element.find(options.orderControl), options.order, options.orderDefault);
this._bind(element.find(options.limitControl), options.limit, options.limitDefault);
this._bind($(options.modeControl), options.mode, options.modeDefault);
this._bind($(options.directionControl), options.direction, options.directionDefault);
this._bind($(options.orderControl), options.order, options.orderDefault);
this._bind($(options.limitControl), options.limit, options.limitDefault);
if (options.ajaxFilters) {
$(element).on('click', options.pagerItemSelector, this.handlePagerClick.bind(this));
}
Expand Down

0 comments on commit 6f42d1e

Please sign in to comment.